summaryrefslogtreecommitdiff
path: root/app/lib
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2015-04-01 21:17:16 -0400
committerluxagraf <sng@luxagraf.net>2015-04-01 21:17:16 -0400
commitfa292a8d11730e19056d3259922a8d2b8aa2b2e9 (patch)
treec2f0dc45d1d360a5b6e9aefb3ea3fede74719fe0 /app/lib
parent50fe80969b9ddbfa795b11e303430d58a8e10a8c (diff)
fixed markdown template tag
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/templatetags/templatetags/markdown.py7
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)