Allow markdown in caption of figures

This commit is contained in:
Heitor Pascoal de Bittencourt 2023-07-31 13:27:33 -03:00
parent 910e50b824
commit a9969735db
No known key found for this signature in database
GPG key ID: 2DD9C1566E2774A2

View file

@ -2,7 +2,7 @@
<figure class="{% if position %}{{ position }}{% else -%} center {%- endif %}" > <figure class="{% if position %}{{ position }}{% else -%} center {%- endif %}" >
<img src="{{ src | safe }}"{% if alt %} alt="{{ alt }}"{% endif %}{% if style %} style="{{ style }}"{% endif %} /> <img src="{{ src | safe }}"{% if alt %} alt="{{ alt }}"{% endif %}{% if style %} style="{{ style }}"{% endif %} />
{% if caption %} {% if caption %}
<figcaption class="{% if caption_position %}{{ caption_position }}{% else -%} center {%- endif %}"{% if caption_style %} style="{{ caption_style | safe }}"{% endif %}>{{ caption }}</figcaption> <figcaption class="{% if caption_position %}{{ caption_position }}{% else -%} center {%- endif %}"{% if caption_style %} style="{{ caption_style | safe }}"{% endif %}>{{ caption | markdown() | safe }}</figcaption>
{% endif %} {% endif %}
</figure> </figure>
{% endif %} {% endif %}