Kaynağa Gözat

fix(codeSpans): add - and = to escaped chars inside code spans

Estevao Soares dos Santos 8 yıl önce
ebeveyn
işleme
4243a313fd

+ 1 - 8
dist/showdown.js

@@ -1678,14 +1678,7 @@ showdown.subParser('encodeCode', function (text, options, globals) {
     .replace(/</g, '&lt;')
     .replace(/>/g, '&gt;')
   // Now, escape characters that are magic in Markdown:
-    .replace(/([*_{}\[\]\\])/g, showdown.helper.escapeCharactersCallback);
-
-  // jj the line above breaks this:
-  //---
-  //* Item
-  //   1. Subitem
-  //            special char: *
-  // ---
+    .replace(/([*_{}\[\]\\=-])/g, showdown.helper.escapeCharactersCallback);
 
   text = globals.converter._dispatch('encodeCode.after', text, options, globals);
   return text;

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/showdown.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/showdown.min.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/showdown.min.js.map


+ 1 - 8
src/subParsers/encodeCode.js

@@ -16,14 +16,7 @@ showdown.subParser('encodeCode', function (text, options, globals) {
     .replace(/</g, '&lt;')
     .replace(/>/g, '&gt;')
   // Now, escape characters that are magic in Markdown:
-    .replace(/([*_{}\[\]\\])/g, showdown.helper.escapeCharactersCallback);
-
-  // jj the line above breaks this:
-  //---
-  //* Item
-  //   1. Subitem
-  //            special char: *
-  // ---
+    .replace(/([*_{}\[\]\\=-])/g, showdown.helper.escapeCharactersCallback);
 
   text = globals.converter._dispatch('encodeCode.after', text, options, globals);
   return text;

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor