diff options
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/templatetags/templatetags/markdown.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/lib/templatetags/templatetags/markdown.py b/app/lib/templatetags/templatetags/markdown.py index dca51f2..f14d5e0 100644 --- a/app/lib/templatetags/templatetags/markdown.py +++ b/app/lib/templatetags/templatetags/markdown.py @@ -1,9 +1,10 @@ from django import template -import markdown2 as markdown +import markdown register = template.Library() def do_markdown(text): - return markdown.markdown(text, safe_mode = False) -register.filter('markdown', do_markdown)
\ No newline at end of file + return markdown.markdown(text, extensions=['extra'], safe_mode=False) + +register.filter('markdown', do_markdown) |