Add alt text to mermaid embed
This commit is contained in:
parent
1ef53bb45b
commit
27fc575c12
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
{{ $data := dict "code" .Inner "mermaid" $mermaidData }}
|
{{ $data := dict "code" .Inner "mermaid" $mermaidData }}
|
||||||
|
|
||||||
<figure class="mermaid">
|
<figure class="mermaid">
|
||||||
<img src="https://mermaid.ink/img/{{ $data | jsonify | base64Encode }}" referrerpolicy="no-referrer" decoding="async" loading="lazy" />
|
<img src="https://mermaid.ink/img/{{ $data | jsonify | base64Encode }}" referrerpolicy="no-referrer" decoding="async" loading="lazy" alt='{{ .Get "caption" }}' />
|
||||||
<figcaption class="text-center">
|
<figcaption class="text-center">
|
||||||
<small>{{ .Get "caption" }}</small>
|
<small>{{ .Get "caption" }}</small>
|
||||||
</figcaption>
|
</figcaption>
|
||||||
|
|
Loading…
Reference in a new issue