diff --git a/lib/renderer.js b/lib/renderer.js index 214f3fa..fa701e6 100644 --- a/lib/renderer.js +++ b/lib/renderer.js @@ -33,7 +33,7 @@ Renderer.prototype.listitem = function(text) { // Add id attribute to headings Renderer.prototype.heading = function(text, level) { - var transformOption = this.options.modifyAnchors; + var transformOption = this.config.marked.modifyAnchors; var id = anchorId(stripHTML(text), transformOption); var headingId = this._headingId; @@ -52,11 +52,11 @@ function anchorId(str, transformOption) { } // Support AutoLink option -if (!this.options.autolink) { +if (!this.config.marked.autolink) { Renderer.prototype.link = function(href, title, text) { var prot; - if (this.options.sanitize) { + if (this.config.marked.sanitize) { try { prot = decodeURIComponent(unescape(href)) .replace(/[^\w:]/g, '')