
var md = (function () {
  // marked
  var defaults = {
    gfm: true,
    tables: true,
    breaks: false,
    pedantic: false,
    sanitize: false,
    // sanitizer: null,
    // mangle: true, // mangling of email addresses
    smartLists: false,
    // silent: false, // report errors
    // highlight: null,
    langPrefix: 'language-', // prism
    smartypants: false
    // headerPrefix: '',
    // renderer:
    // xhtml: false // handle self closing HTML tags
  }

  function compile (markdown, sendResponse) {
    chrome.storage.sync.get(function (sync) {
      marked.setOptions(sync.options)

      marked(markdown, function (err, html) {
        if (err) throw err
        // prism fix
        html = html.replace(/language-html/g, 'language-markup')
        html = html.replace(/language-js/g, 'language-javascript')

        sendResponse({message: 'marked', marked: html})
      })
    })
  }

  return {
    defaults: defaults,
    compile: compile
  }
}())


var md = (function () {
  // marked
  var defaults = {
    gfm: true,
    tables: true,
    breaks: false,
    pedantic: false,
    sanitize: false,
    // sanitizer: null,
    // mangle: true, // mangling of email addresses
    smartLists: false,
    // silent: false, // report errors
    // highlight: null,
    langPrefix: 'language-', // prism
    smartypants: false
    // headerPrefix: '',
    // renderer:
    // xhtml: false // handle self closing HTML tags
  }

  function compile (markdown, sendResponse) {
    chrome.storage.sync.get(function (sync) {
      marked.setOptions(sync.options)

      marked(markdown, function (err, html) {
        if (err) throw err
        sendResponse({message: 'marked', marked: html})
      })
    })
  }

  return {
    defaults: defaults,
    compile: compile
  }
}())

Remove prism fix for html and js code blocks
Remove prism fix for html and js code blocks
