diff --git a/lib/renderer.js b/lib/renderer.js index fa701e6..91f7005 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.config.marked.modifyAnchors; + var transformOption = this.options.modifyAnchors; var id = anchorId(stripHTML(text), transformOption); var headingId = this._headingId; @@ -56,7 +56,7 @@ if (!this.config.marked.autolink) { Renderer.prototype.link = function(href, title, text) { var prot; - if (this.config.marked.sanitize) { + if (this.options.sanitize) { try { prot = decodeURIComponent(unescape(href)) .replace(/[^\w:]/g, '')