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:
bbaovanc committed 2025-07-30 00:43:05 -05:00
1 parent 8845272d4d
commit bbe76a44bb
1 file changed
+1 -1
+1 -1
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>