Add Markdown support to item descriptions
This commit is contained in:
parent
4e2038a094
commit
a65c652647
|
@ -13,3 +13,4 @@ djangorestframework-hstore==1.3
|
||||||
pyldap==2.4.28
|
pyldap==2.4.28
|
||||||
requests==2.16.5
|
requests==2.16.5
|
||||||
urllib3==1.21.1
|
urllib3==1.21.1
|
||||||
|
django_markdown2==0.3.0
|
||||||
|
|
|
@ -43,6 +43,7 @@ INSTALLED_APPS = [
|
||||||
'tree',
|
'tree',
|
||||||
'django_select2',
|
'django_select2',
|
||||||
'rest_framework',
|
'rest_framework',
|
||||||
|
'django_markdown2',
|
||||||
|
|
||||||
'storage',
|
'storage',
|
||||||
]
|
]
|
||||||
|
|
|
@ -71,7 +71,10 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
{{ item.description|urlize }}
|
{% if item.description %}
|
||||||
|
{% load md2 %}
|
||||||
|
{{ item.description|markdown:"code-color" }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<h3>Children</h3>
|
<h3>Children</h3>
|
||||||
<table class="table table-striped table-hover">
|
<table class="table table-striped table-hover">
|
||||||
|
|
Loading…
Reference in New Issue