Skip to content

Commit

Permalink
fix(_includes/figure): Apply escape_once on include.alt
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Oct 2, 2024
1 parent 844812b commit cff0e2a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Fix wrong float direction for `feature_row` with `type="right"`. [#4061](https://github.com/mmistakes/minimal-mistakes/issues/4061)
- Fix reset stylesheet overruling `$doc-font-size`. [#4983](https://github.com/mmistakes/minimal-mistakes/issues/4983)
- Fix JavaScript null error on home and splash layouts. [#4938](https://github.com/mmistakes/minimal-mistakes/issues/4938), [#4939](https://github.com/mmistakes/minimal-mistakes/pull/4939)
- Fix bad <figure> HTML if "alt" contains quotes.

### Documentation & Maintenance

Expand Down
2 changes: 1 addition & 1 deletion _includes/figure
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
3 changes: 2 additions & 1 deletion docs/_docs/18-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ permalink: "/docs/history/"
excerpt: Change log of enhancements and bug fixes made to the theme.
sidebar:
nav: docs
last_modified_at: '2024-09-26T13:40:04+08:00'
last_modified_at: '2024-10-02T22:57:15+08:00'
toc: false
---

Expand Down Expand Up @@ -33,6 +33,7 @@ toc: false
- Fix wrong float direction for `feature_row` with `type="right"`. [#4061](https://github.com/mmistakes/minimal-mistakes/issues/4061)
- Fix reset stylesheet overruling `$doc-font-size`. [#4983](https://github.com/mmistakes/minimal-mistakes/issues/4983)
- Fix JavaScript null error on home and splash layouts. [#4938](https://github.com/mmistakes/minimal-mistakes/issues/4938), [#4939](https://github.com/mmistakes/minimal-mistakes/pull/4939)
- Fix bad &lt;figure&gt; HTML if "alt" contains quotes.

### Documentation & Maintenance

Expand Down

0 comments on commit cff0e2a

Please sign in to comment.