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:
Rohitt Vashishtha
2018-12-20 07:28:40 +00:00
committed by Tim Abbott
parent 73eed42b3c
commit b7c5ae7bca
9 changed files with 52 additions and 23 deletions

View File

@@ -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 """