Allow using positional parameter for figure caption

This commit is contained in:
2025-07-27 01:44:08 -05:00
parent d6cb2c12c8
commit 8f79d2af3a

View File

@@ -10,7 +10,7 @@
{{ end }}
{{ else }}
{{ .Inner }}
{{ with .Get "caption" }}
{{ with or (.Get "caption") (.Get 0) }}
<figcaption>{{ . | markdownify }}</figcaption>
{{ end }}
{{ end }}