add markdown rendering for program

This commit is contained in:
Lyn Fugmann 2024-09-27 16:32:04 +02:00
parent e376bc1389
commit 49f39f1ecb
6 changed files with 126 additions and 25 deletions

View file

@ -34,19 +34,19 @@
<span class="full">{{ event.start }}{{ " " + event.end if event.end }}</span>
</div>
<p>{{ getLocalized(event.description) }}</p>
<p>{{ getLocalized(event.description) | mdInline | safe }}</p>
{% if event.annotation %}
<p class="annotation">
{% icon "solid:exclamation", title=("Notice" if lang == "en" else "Hinweis") %}
{{ getLocalized(event.annotation) }}
{{ getLocalized(event.annotation) | mdInline | safe }}
</p>
{% endif %}
{% if event.location %}
<p class="location">
{% icon "solid:location-dot", title=("Location" if lang == "en" else "Veranstaltungsort") %}
{{ getLocalized(event.location) }}
{{ getLocalized(event.location) | mdInline | safe }}
</p>
{% endif %}