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