Show markdown on pages.

This commit is contained in:
Jan Böhmer 2019-10-11 23:53:12 +02:00
parent 46959b74ed
commit 7ec406d4a1
9 changed files with 462 additions and 275 deletions

View file

@ -27,7 +27,7 @@
<a href="{{ part|entityURL('edit') }}"><i class="fas fa-fw fa-sm fa-edit"></i></a>
{% endif %}
</h3>
<h6 class="text-muted"><span title="{% trans %}description.label{% endtrans %}">{{ part.description|bbCode }}</span></h6>
<h6 class="text-muted"><span title="{% trans %}description.label{% endtrans %}">{{ part.description|markdown(true) }}</span></h6>
<h6 class="">
<i class="fas fa-tag fa-fw" title="{% trans %}category.label{% endtrans %}"></i>
<span class="text-muted">{{ helper.structural_entity_link(part.category) }}</span>

View file

@ -84,7 +84,7 @@
{% if part.comment is not empty %}
<div class="tab-pane fade show" id="comment" role="tabpanel" aria-labelledby="home-tab">
<div class="container-fluid mt-2">
{{ part.comment|bbCode }}
{{ part.comment|markdown }}
</div>
</div>
{% endif %}