File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -93,5 +93,4 @@ The following bug fixes are included in the 3.2 release:
93
93
* HTML tag placeholders are no longer included in ` .toc_tokens ` (#899 ).
94
94
* Unescape backslash-escaped characters in TOC ids (#864 ).
95
95
* Refactor bold and italic logic in order to solve complex nesting issues (#792 ).
96
- * Always wrap CodeHilite code in <code > tags (#862 ) </code >
97
- * Regex for HTML placeholders simplified for speed improvement (#928 ).
96
+ * Always wrap CodeHilite code in ` code ` tags (#862 )
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ def run(self, text):
77
77
replacements [self .md .htmlStash .get_placeholder (i )] = html
78
78
79
79
if replacements :
80
- pattern = util . HTML_PLACEHOLDER_RE
80
+ pattern = re . compile ( "|" . join ( re . escape ( k ) for k in replacements ))
81
81
processed_text = pattern .sub (lambda m : replacements [m .group (0 )], text )
82
82
else :
83
83
return text
You can’t perform that action at this time.
0 commit comments