Enable Markdown rendering support for user notes and entry content

This commit is contained in:
Danielle McLean 2017-10-25 13:25:58 +11:00
parent 60cd6c911b
commit e88b631cdb
Signed by untrusted user: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
7 changed files with 45 additions and 5 deletions

View file

@ -1,5 +1,5 @@
{% extends 'lemoncurry/layout.html' %}
{% load static %}
{% load markdown_deux_tags static %}
{% block styles %}
<link rel="stylesheet" type="text/stylus" href="{% static 'home/css/index.styl' %}" />
<link rel="stylesheet" type="text/stylus" href="{% static 'entries/css/h-entry.styl' %}" />
@ -21,7 +21,7 @@
</a>
</h6>
{% endfor %}
{% if user.note %}<p class="card-text p-note">{{ user.note }}</p>{% endif %}
{% if user.note %}<div class="p-note">{{ user.note | markdown:'trusted' }}</div>{% endif %}
</div>
<div class="card-footer">