Add basic markdown support site wide

This commit is contained in:
Tom Price
2016-01-07 18:14:10 +00:00
parent aa76c6c775
commit b80c38756f
9 changed files with 30 additions and 11 deletions

View File

@@ -1,9 +1,10 @@
{% load markdown_tags %}
<tr id="item-{{item.pk}}" data-pk="{{item.pk}}" class="item_row">
<td>
<span class="name">{{ item.name }}</span>
<div class="item-description">
<em class="description">{{item.description|linebreaksbr}}</em>
<em class="description">{{item.description|markdown}}</em>
</div>
</td>
<td>£&nbsp;<span class="cost">{{item.cost|floatformat:2}}</span></td>