PaperModX/layouts/shortcodes/figure-img.html
Reorx 375281fd60 fix shortcodes rendering markdown img
replace markdownify with .Page.RenderString, the latter trigger render hook properly

see: https://gohugo.io/functions/markdownify/#readout
> Note: if you need Render Hooks, which markdownify doesn’t currently support, use .RenderString instead.
2022-06-01 16:21:06 +08:00

6 lines
143 B
HTML

<figure class="center align-center">
{{ .Page.RenderString .Inner }}
<figcaption><p>{{ .Get 0 | markdownify }}</p></figcaption>
</figure>