Skip to content

Commit

Permalink
Merge pull request #53 from tivie/patch-1
Browse files Browse the repository at this point in the history
Make parser.js compatible with showdown >= 1.3.0
  • Loading branch information
Kreozot committed Oct 26, 2015
2 parents a6deff1 + eb0aeb1 commit 3a9912b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var Parser = function(config) {
this.parseMdown = config.parsingFunction;
} else {
var converter = new showdown.Converter();
this.parseMdown = converter.makeHtml;
this.parseMdown = converter.makeHtml.bind(converter);
}
}

Expand Down Expand Up @@ -120,4 +120,4 @@ Parser.prototype.getTitle = function(mdown){
return match? match[1].trim() : '';
}

module.exports = Parser;
module.exports = Parser;

0 comments on commit 3a9912b

Please sign in to comment.