Skip to content

Commit

Permalink
fix(escapeSpecialCharsWithinTagAttributes): add ~ and = to escaped chars
Browse files Browse the repository at this point in the history
  • Loading branch information
tivie committed Jan 28, 2017
1 parent ed6a687 commit bfcc0e4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/showdown.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/showdown.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/showdown.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/showdown.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/subParsers/escapeSpecialCharsWithinTagAttributes.js
Expand Up @@ -13,7 +13,7 @@ showdown.subParser('escapeSpecialCharsWithinTagAttributes', function (text) {
return wholeMatch
.replace(/(.)<\/?code>(?=.)/g, '$1`')
//tag = showdown.helper.escapeCharacters(tag, '\\`*_', false);
.replace(/([\\`*_])/g, showdown.helper.escapeCharactersCallback);
.replace(/([\\`*_ ~=])/g, showdown.helper.escapeCharactersCallback);
});

return text;
Expand Down

0 comments on commit bfcc0e4

Please sign in to comment.