Render the Markdown content for entries in Jinja2 - the resulting HTML isn't pretty yet, I'll probably need to write an html5lib filter that prettifies it

This commit is contained in:
Danielle McLean 2018-06-25 10:11:52 +10:00
parent e4aa5c6e6e
commit b145f4ada9
Signed by: 00dani
GPG key ID: 8EB789DDF3ABD240
4 changed files with 41 additions and 2 deletions

View file

@ -10,7 +10,7 @@
{{i}}<h4 class="card-title p-name">{{ entry.name }}</h4>
{% endif %}
{{i}}<div class="e-content">
{{i}}{{ entry.content | indent(indent_width + 6) }}
{{i}}{{ entry.content | markdown }}
{{i}}</div>
{{i}}</div>