From 0d00857ef84de7d6fae74c42f0368de2efcc470a Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 18 Jan 2021 17:54:36 -0800 Subject: [PATCH] Render markdown to html in the right order --- bookwyrm/templates/snippets/trimmed_text.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bookwyrm/templates/snippets/trimmed_text.html b/bookwyrm/templates/snippets/trimmed_text.html index b8301977..5d287ab3 100644 --- a/bookwyrm/templates/snippets/trimmed_text.html +++ b/bookwyrm/templates/snippets/trimmed_text.html @@ -2,10 +2,10 @@ {% with 0|uuid as uuid %} {% if full %} -{% with full|truncatewords_html:60 as trimmed %} +{% with full|to_markdown|safe|truncatewords_html:60 as trimmed %} {% if trimmed != full %}
-
{{ trimmed | to_markdown | safe }} +
{{ trimmed }} {% include 'snippets/toggle/open_button.html' with text="show more" controls_text="full" controls_uid=uuid class="is-small" %}