X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/9e75f1e87c62bdfeba60549f96caf7658c6d1603..4f54d1c4dfe4b2b6c62601212c27c175fde3d5b0:/forum/markdownext/mdx_limitedsyntax.py 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)