2 from django.utils.safestring import mark_safe
\r
3 from django.utils.html import strip_tags
\r
4 from forum.utils.html import sanitize_html
\r
6 class LimitedSyntaxExtension(markdown.Extension):
\r
7 def extendMarkdown(self, md, md_globals):
\r
8 del md.inlinePatterns["image_reference"]
\r
10 def makeExtension(configs=None) :
\r
11 return LimitedSyntaxExtension(configs=configs)
\r