remove django-markdown and handle preview manually

This commit is contained in:
Élie Bouttier 2014-09-06 00:39:50 -07:00
parent 4995c19560
commit 7e3173c7c0
32 changed files with 335 additions and 16478 deletions

8
tracker/utils.py Normal file
View file

@ -0,0 +1,8 @@
from django.utils.safestring import mark_safe
from markdown import markdown
def markdown_to_html(value):
# set extensions here if needed
return mark_safe(markdown(value, safe_mode='escape'))