fix(escapeSpecialCharsWithinTagAttributes): add ~ and = to escaped chars

This commit is contained in:
Estevao Soares dos Santos 2017-01-28 03:02:27 +00:00
parent ed6a687013
commit bfcc0e44f0
5 changed files with 1 additions and 1 deletions

BIN
dist/showdown.js vendored

Binary file not shown.

BIN
dist/showdown.js.map vendored

Binary file not shown.

BIN
dist/showdown.min.js vendored

Binary file not shown.

Binary file not shown.

View File

@ -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;