Use markdown in feature description

This commit is contained in:
Yohan Boniface 2013-06-21 18:02:02 +02:00
parent 3b7131f2fd
commit 53f9a904b2
3 changed files with 8 additions and 1 deletions

View file

@ -5,3 +5,4 @@ django_compressor==1.2
django-social-auth==0.7.20
git+git://github.com/yohanboniface/vectorformats.git@leafletstorage
hg+https://bitbucket.org/liberation/sesql
Markdown==2.3.1

View file

@ -46,6 +46,7 @@ INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.gis',
'django.contrib.markup',
)
#==============================================================================

View file

@ -0,0 +1,5 @@
{% load markup %}
<h5>{{ feature }}</h5>
{% if feature.description %}
<div>{{ feature.description|urlize|markdown }}</div>
{% endif %}