mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
fix(codeSpans): add - and = to escaped chars inside code spans
This commit is contained in:
parent
7d63a3e635
commit
4243a313fd
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.
|
@ -16,14 +16,7 @@ showdown.subParser('encodeCode', function (text, options, globals) {
|
|||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
// 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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user