remove django-markdown and handle preview manually
This commit is contained in:
parent
4995c19560
commit
7e3173c7c0
32 changed files with 335 additions and 16478 deletions
8
tracker/utils.py
Normal file
8
tracker/utils.py
Normal 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'))
|
Loading…
Add table
Add a link
Reference in a new issue