]> git.openstreetmap.org Git - osqa.git/blob - forum/markdownext/mdx_limitedsyntax.py
show the recaptcha field to unauthenticated users without a metter what is the min...
[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)