render messages as markdown

This commit is contained in:
Élie Bouttier 2016-10-04 21:41:31 +02:00
parent 0a1ac95ef4
commit 65de4ed8d1
3 changed files with 6 additions and 4 deletions

View File

@ -1,8 +1,10 @@
{% load proposals_tags %}
<div class="panel panel-{% block panelstyleblock %}default{% endblock %}">
<div class="panel-heading">
{{ message.created }} | <a href="{% url 'show-speaker' message.author.username %}">{{ message.author.profile }}</a>
</div>
<div class="panel-body">
{{ message.content|linebreaksbr }}
{% markdown message.content %}
</div>
</div>

View File

@ -1,4 +1,4 @@
{{ content|linebreaksbr }}
{% load proposals_tags %}{% markdown content %}
<hr>
{% if answering %}

View File

@ -1,11 +1,11 @@
Hi!<br />
{% load proposals_tags %}Hi!<br />
<br />
A <a href="https://{{ uri }}">new {{ talk.event }}</a> has been proposed by <a href="https://{{ proposer_uri }}">{{ proposer.profile }}</a>!<br />
<br />
Title: {{ talk.title }}<br />
<br />
Description:<br />
<p>{{ talk.description|linebreaksbr }}</p>
<p>{% markdown talk.description %}</p>
{% if answering %}
<hr>
Reply to this email directly to comment this talk.{% endif %}