fix pre regex heuristics: avoid double ```
This commit is contained in:
parent
9b11cd6cee
commit
90fafdc261
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ class RegexHeuristics:
|
||||||
|
|
||||||
self.configurator = configurator
|
self.configurator = configurator
|
||||||
self._rules = {
|
self._rules = {
|
||||||
"^(</*pre.*?>)(?P<content>.*?)(<\/pre>)?$": self._remove_pre_tag,
|
"^(</*pre.*?>)(?P<content>.*?)`{0,3}(<\/pre>)?$": self._remove_pre_tag,
|
||||||
}
|
}
|
||||||
|
|
||||||
def _remove_pre_tag(self, match) -> str:
|
def _remove_pre_tag(self, match) -> str:
|
||||||
|
|
Loading…
Reference in a new issue