Skip to content

Commit 3a9912b

Browse files
committed
Merge pull request #53 from tivie/patch-1
Make parser.js compatible with showdown >= 1.3.0
2 parents a6deff1 + eb0aeb1 commit 3a9912b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var Parser = function(config) {
88
this.parseMdown = config.parsingFunction;
99
} else {
1010
var converter = new showdown.Converter();
11-
this.parseMdown = converter.makeHtml;
11+
this.parseMdown = converter.makeHtml.bind(converter);
1212
}
1313
}
1414

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

123-
module.exports = Parser;
123+
module.exports = Parser;

0 commit comments

Comments
 (0)