PCv5/app/utils/markdown_extensions/escape_html.py

8 lines
211 B
Python
Raw Normal View History

2021-02-23 12:00:34 +01:00
from markdown.extensions import Extension
class EscapeHtmlExtension(Extension):
2021-02-23 12:00:34 +01:00
def extendMarkdown(self, md):
md.preprocessors.deregister('html_block')
md.inlinePatterns.deregister('html')