From 57da42e4bd0717e26db5c27ff0628975b0894b46 Mon Sep 17 00:00:00 2001 From: moanos Date: Tue, 7 Jan 2025 09:19:41 +0100 Subject: [PATCH] feat: allow markdown in animal description --- .../fellchensammlung/partials/partial-animal-card.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fellchensammlung/templates/fellchensammlung/partials/partial-animal-card.html b/src/fellchensammlung/templates/fellchensammlung/partials/partial-animal-card.html index aa33707..4f63c2c 100644 --- a/src/fellchensammlung/templates/fellchensammlung/partials/partial-animal-card.html +++ b/src/fellchensammlung/templates/fellchensammlung/partials/partial-animal-card.html @@ -1,4 +1,5 @@ {% load i18n %} +{% load custom_tags %}

{{ animal.name }}

@@ -19,7 +20,7 @@
{% if animal.description %} -

{{ animal.description }}

+

{{ animal.description | render_markdown }}

{% endif %} {% for photo in animal.get_photos %} {{ photo.alt_text }}