Skip to content

Commit

Permalink
Merge pull request #1397 from mccraveiro/escape-tag
Browse files Browse the repository at this point in the history
Fix tag escaping
  • Loading branch information
styfle committed Dec 20, 2018
2 parents fb334ba + e51bca6 commit 53d7ba0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/marked.js
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/new/escaped_angles.html
@@ -1 +1 @@
<p>></p>
<p>&gt;</p>
2 changes: 1 addition & 1 deletion test/original/backslash_escapes.html
Expand Up @@ -20,7 +20,7 @@

<p>Right paren: )</p>

<p>Greater-than: ></p>
<p>Greater-than: &gt;</p>

<p>Hash: #</p>

Expand Down
2 changes: 1 addition & 1 deletion test/specs/commonmark/commonmark-spec.js
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 53d7ba0

Please sign in to comment.