]> git.openstreetmap.org Git - osqa.git/blob - forum/markdownext/mdx_limitedsyntax.py
Merge pull request #11 from udacity/make_faq_settings_translatable
[osqa.git] / forum / markdownext / mdx_limitedsyntax.py
1 import markdown
2 from django.utils.safestring import mark_safe
3 from django.utils.html import strip_tags
4 from forum.utils.html import sanitize_html
5
6 class LimitedSyntaxExtension(markdown.Extension):
7     def extendMarkdown(self, md, md_globals):
8         del md.inlinePatterns["image_reference"]
9
10 def makeExtension(configs=None) :
11     return LimitedSyntaxExtension(configs=configs)