PaperModX/layouts/shortcodes/collapse.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

5 lines
188 B
HTML

<p><details {{ if (eq (.Get "openByDefault") true) }} open=true {{ end }}>
<summary markdown="span">{{ .Get 0 | markdownify }}</summary>
{{ .Page.RenderString .Inner }}
</details></p>