Allow backticks in figure inline caption using \bt

Workaround for multline strings bounded with backtick not supporting any
way to escape one to type it inside the string.
This commit is contained in:
2025-07-30 00:00:20 -05:00
parent 8845272d4d
commit bbe76a44bb

View File

@@ -12,6 +12,6 @@
{{ end }} {{ end }}
{{ with or (.Get "caption") (.Get 0) $resource_title }} {{ with or (.Get "caption") (.Get 0) $resource_title }}
<figcaption>{{ . | markdownify }}</figcaption> <figcaption>{{ (replace . "\\bt" "`") | markdownify }}</figcaption>
{{ end }} {{ end }}
</figure> </figure>