]> git.openstreetmap.org Git - osqa.git/blob - forum/markdownext/mdx_limitedsyntax.py
Adds user based question listings and context sensitive rss feeds.
[osqa.git] / forum / markdownext / 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