mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-08-06 07:51:36 -05:00
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:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user