Browse Source

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

Estevao Soares dos Santos 8 years ago
parent
commit
bfcc0e44f0

+ 1 - 1
dist/showdown.js

@@ -1682,7 +1682,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;

File diff suppressed because it is too large
+ 0 - 0
dist/showdown.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/showdown.min.js


File diff suppressed because it is too large
+ 0 - 0
dist/showdown.min.js.map


+ 1 - 1
src/subParsers/escapeSpecialCharsWithinTagAttributes.js

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

Some files were not shown because too many files changed in this diff