 
           ss = $('.output-div > script', $codeChunk)
           if ss
-            # load d3.min.js and mpld3.min.js
-            ###
-            requires = options.require or []
-            requires.push(path.resolve(__dirname, '../dependencies/mpld3/d3.v3.min.js'))
-            requires.push(path.resolve(__dirname, '../dependencies/mpld3/mpld3.v0.3.min.js'))
-            options.require = requires
-            ###
-
             for s in ss
               $s = $(s)
               c = $s.html()

      if options.matplotlib or options.mpl
        scriptElements = outputDiv.getElementsByTagName('script')
        if scriptElements.length
          window.d3 = require('../dependencies/mpld3/d3.v3.min.js')
          window.mpld3 = require('../dependencies/mpld3/mpld3.v0.3.min.js')
          for scriptElement in scriptElements
            code = scriptElement.innerHTML
            allowUnsafeNewFunction -> allowUnsafeEval ->

katex = require 'katex'
matter = require('gray-matter')
{allowUnsafeEval, allowUnsafeNewFunction} = require 'loophole'
cheerio = null

{getMarkdownPreviewCSS} = require './style'
plantumlAPI = require './puml'
