]> git.openstreetmap.org Git - osqa.git/blob - forum/markdownext/mdx_limitedsyntax.py
OSQA-382, convert the python files line endings to OS native mode, propedit svn:eol...
[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)