]> git.openstreetmap.org Git - osqa.git/blob - mdx_limitedsyntax.py
* moved opensearch into the core, uses a template file to render. Also seems to...
[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