lib/markdown.js
function Markdown(config) {
    RED.nodes.createNode(this, config);
    var self = this;
    this.on('input', function(msg) {
      msg.payload = marked(msg.payload);
      self.send(msg);
    });
  }
function Markdown(config) {
    RED.nodes.createNode(this, config);
    var self = this;
    this.on('input', function(msg) {
      msg.payload = marked(msg.payload);
      self.send(msg);
    });
  }
function Markdown ( config ) { RED . nodes . createNode ( this , config ) ; var self = this ; this . on ( 'input' , function ( msg ) { msg . payload = marked ( msg . payload ) ; self . send ( msg ) ; } ) ; }
marked.setOptions({ highlight: function (code, lang) { return highlight.highlightAuto(code, lang ? [lang] : null).value; } });
marked . setOptions ( { highlight : function ( code lang ) { return highlight . highlightAuto ( code lang ? [ lang ] : null ) . value ; } } ) ;