+3
-2
lines changedFilter options
+3
-2
lines changed Original file line number Diff line number Diff line change
@@ -93,4 +93,5 @@ 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).
96
+
* Always wrap CodeHilite code in <code> tags (#862) </code>
97
+
* Regex for HTML placeholders simplified for speed improvement (#928).
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 = re.compile("|".join(re.escape(k) for k in replacements))
80
+
pattern = util.HTML_PLACEHOLDER_RE
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.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4