Skip to content

Commit

Permalink
Fix tag escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
mccraveiro committed Dec 20, 2018
1 parent fe91a61 commit 7cac87c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/marked.js
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ InlineLexer.prototype.output = function(src) {
// escape
if (cap = this.rules.escape.exec(src)) {
src = src.substring(cap[0].length);
out += cap[1];
out += escape(cap[1]);
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion test/specs/commonmark/commonmark-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ describe('CommonMark 0.28 Backslash escapes', function() {
var section = 'Backslash escapes';

// var shouldPassButFails = [];
var shouldPassButFails = [291, 300, 301];
var shouldPassButFails = [300, 301];

var willNotBeAttemptedByCoreTeam = [];

Expand Down

0 comments on commit 7cac87c

Please sign in to comment.