X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/9e75f1e87c62bdfeba60549f96caf7658c6d1603..d08ce9161ea653d7c4b1b114fdaf28bc1d45daf9:/forum/markdownext/mdx_limitedsyntax.py?ds=sidebyside diff --git a/forum/markdownext/mdx_limitedsyntax.py b/forum/markdownext/mdx_limitedsyntax.py index 6a6dac5..5ac0f00 100644 --- a/forum/markdownext/mdx_limitedsyntax.py +++ b/forum/markdownext/mdx_limitedsyntax.py @@ -1,11 +1,11 @@ -import markdown -from django.utils.safestring import mark_safe -from django.utils.html import strip_tags -from forum.utils.html import sanitize_html - -class LimitedSyntaxExtension(markdown.Extension): - def extendMarkdown(self, md, md_globals): - del md.inlinePatterns["image_reference"] - -def makeExtension(configs=None) : - return LimitedSyntaxExtension(configs=configs) +import markdown +from django.utils.safestring import mark_safe +from django.utils.html import strip_tags +from forum.utils.html import sanitize_html + +class LimitedSyntaxExtension(markdown.Extension): + def extendMarkdown(self, md, md_globals): + del md.inlinePatterns["image_reference"] + +def makeExtension(configs=None) : + return LimitedSyntaxExtension(configs=configs)