summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/collapse.html
diff options
context:
space:
mode:
authorReorx <novoreorx@gmail.com>2022-06-01 16:21:06 +0800
committerReorx <novoreorx@gmail.com>2022-06-01 16:21:06 +0800
commit375281fd60b39685052c9f8cd6357392724113e1 (patch)
tree2aa2a6385ce496858ad5528f39e60518c8e56d09 /layouts/shortcodes/collapse.html
parent82a79a8354a2b9a84dc14e9f50963e313e488cd8 (diff)
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.
Diffstat (limited to 'layouts/shortcodes/collapse.html')
-rw-r--r--layouts/shortcodes/collapse.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/shortcodes/collapse.html b/layouts/shortcodes/collapse.html
index 1c5e96f..71d13d6 100644
--- a/layouts/shortcodes/collapse.html
+++ b/layouts/shortcodes/collapse.html
@@ -1,4 +1,4 @@
<p><details {{ if (eq (.Get "openByDefault") true) }} open=true {{ end }}>
<summary markdown="span">{{ .Get 0 | markdownify }}</summary>
- {{ .Inner | markdownify }}
+ {{ .Page.RenderString .Inner }}
</details></p>