mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 04:43:58 +00:00
dependencies: Upgrade markdown from 2.6.11 -> 3.0.1.
This is a major upgrade, and requires some significant compatibility work: * Migrating the pattern-removal logic to use the Registry feature. * Handling the removal of positional arguments in markdown extensions. * Handling the removal of safe mode.
This commit is contained in:
committed by
Tim Abbott
parent
73eed42b3c
commit
b7c5ae7bca
@@ -322,7 +322,7 @@ class FencedBlockPreprocessor(markdown.preprocessors.Preprocessor):
|
||||
return "\n\n".join(tex_paragraphs)
|
||||
|
||||
def placeholder(self, code: str) -> str:
|
||||
return self.markdown.htmlStash.store(code, safe=True)
|
||||
return self.markdown.htmlStash.store(code)
|
||||
|
||||
def _escape(self, txt: str) -> str:
|
||||
""" basic html escaping """
|
||||
|
||||
Reference in New Issue
Block a user