fix(_includes/figure): Apply escape_once on include.alt

This commit is contained in:
iBug
2024-10-02 22:57:16 +08:00
parent 844812b4f4
commit cff0e2a387
3 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<figure class="{{ include.class }}">
{%- if include.popup -%}<a href="{{ include.image_path | relative_url }}" class="image-popup"{% if include.caption %} title="{{ include.caption | markdownify | strip_html }}"{% endif %}>{%- endif -%}
<img src="{{ include.image_path | relative_url }}"
alt="{% if include.alt %}{{ include.alt }}{% endif %}">
alt="{% if include.alt %}{{ include.alt | escape_once }}{% endif %}">
{%- if include.popup -%}</a>{%- endif -%}
{%- if include.caption -%}
<figcaption>