mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
fix(escapeSpecialCharsWithinTagAttributes): add ~ and = to escaped chars
This commit is contained in:
parent
ed6a687013
commit
bfcc0e44f0
BIN
dist/showdown.js
vendored
BIN
dist/showdown.js
vendored
Binary file not shown.
BIN
dist/showdown.js.map
vendored
BIN
dist/showdown.js.map
vendored
Binary file not shown.
BIN
dist/showdown.min.js
vendored
BIN
dist/showdown.min.js
vendored
Binary file not shown.
BIN
dist/showdown.min.js.map
vendored
BIN
dist/showdown.min.js.map
vendored
Binary file not shown.
|
@ -13,7 +13,7 @@ showdown.subParser('escapeSpecialCharsWithinTagAttributes', function (text) {
|
||||||
return wholeMatch
|
return wholeMatch
|
||||||
.replace(/(.)<\/?code>(?=.)/g, '$1`')
|
.replace(/(.)<\/?code>(?=.)/g, '$1`')
|
||||||
//tag = showdown.helper.escapeCharacters(tag, '\\`*_', false);
|
//tag = showdown.helper.escapeCharacters(tag, '\\`*_', false);
|
||||||
.replace(/([\\`*_])/g, showdown.helper.escapeCharactersCallback);
|
.replace(/([\\`*_ ~=])/g, showdown.helper.escapeCharactersCallback);
|
||||||
});
|
});
|
||||||
|
|
||||||
return text;
|
return text;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user