Skip to content

Commit

Permalink
Update renderer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahDragon authored Apr 4, 2017
1 parent e9c6be0 commit 23e7cb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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, '')
Expand Down

0 comments on commit 23e7cb1

Please sign in to comment.