Ensure shortcode alt text gets displayed as markdown.

This commit is contained in:
2025-11-19 20:17:17 -07:00
parent 15bf95cdfa
commit b654c9db08
2 changed files with 2 additions and 2 deletions

View File

@@ -21,5 +21,5 @@
src='{{ $src }}'
type='audio/{{ .Scratch.Get "type" }}'
>
{{ .Scratch.Get "text" }}
{{ .Scratch.Get "text" | markdownify }}
</audio>

View File

@@ -12,4 +12,4 @@
<img src="{{ $url2 }}" alt="{{ $alt }}">
</picture>
-->
<img src="{{ $url1 }}" alt="{{ $alt }}" onerror="this.onerror=null; this.src='{{ $url2 }}';">
<img src="{{ $url1 }}" alt="{{ $alt | markdownify }}" onerror="this.onerror=null; this.src='{{ $url2 }}';">