mirror of
https://github.com/pawroman/zola-theme-terminimal
synced 2024-11-29 07:40:31 +00:00
Allow markdown in caption of figures
This commit is contained in:
parent
910e50b824
commit
a9969735db
1 changed files with 1 additions and 1 deletions
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue