Improved MD support.

Add some styling for images in MD

Add support for the bastardisation of the MD html for RML.
This commit is contained in:
Tom Price
2016-01-07 19:25:54 +00:00
parent b80c38756f
commit 088e23749d
7 changed files with 9239 additions and 13 deletions

View File

@@ -142,7 +142,7 @@
<dd>&nbsp;</dd>
<dt>Event Description</dt>
<dd>{{ event.description|markdown }}</dd>
<dd>{{ event.description|markdown:'rml' }}</dd>
<dd>&nbsp;</dd>

View File

@@ -1,3 +1,5 @@
{% load markdown_tags %}
<setNextFrame name="main"/>
<nextFrame/>
@@ -15,9 +17,7 @@
</para>
<keepInFrame>
<para style="style.event_description">
{{ object.description|default_if_none:""|linebreaksbr }}
</para>
{{ object.description|default_if_none:""|markdown:'rml' }}
</keepInFrame>
{% if invoice %}
@@ -173,9 +173,9 @@
<para>{{ item.name }}
{% if item.description %}
</para>
<para style="item_description">
<em>{{ item.description|linebreaksbr }}</em>
</para>
<indent left="1cm">
{{ item.description|markdown:"rml" }}
</indent>
<para>
{% endif %}
</para>
@@ -315,4 +315,4 @@
{% include "RIGS/event_print_signature.xml" %}
</keepTogether>
{% endif %}
<namedString id="lastPage"><pageNumber/></namedString>
<namedString id="lastPage"><pageNumber/></namedString>