]> git.openstreetmap.org Git - osqa.git/blob - mdx_limitedsyntax.py
Fix for the remaining bug from OSQA-96 for the code that still exists. Thanks Eugene.
[osqa.git] / mdx_limitedsyntax.py
1 import markdown\r
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
5 \r
6 class LimitedSyntaxExtension(markdown.Extension):\r
7     def extendMarkdown(self, md, md_globals):\r
8         del md.inlinePatterns["image_reference"]\r
9 \r
10 def makeExtension(configs=None) :\r
11     return LimitedSyntaxExtension(configs=configs)\r