aboutsummaryrefslogtreecommitdiff
path: root/layouts/shortcodes/details.html
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2021-08-30 14:32:11 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2021-08-30 14:32:11 +0200
commit0cde2e461d1cca74f45586f410cf194afc5b5d15 (patch)
tree2818cdae4c7c43b2f8b5440f8eeb43491a5180c6 /layouts/shortcodes/details.html
parent4c1de2b3de979d91a51219c13b4c917c9c7fdc2e (diff)
#370: Allow markdown in details shortcode, also change markdownify to RenderString in other shortcodes
Diffstat (limited to 'layouts/shortcodes/details.html')
-rw-r--r--layouts/shortcodes/details.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/layouts/shortcodes/details.html b/layouts/shortcodes/details.html
index f6fff38..cc867aa 100644
--- a/layouts/shortcodes/details.html
+++ b/layouts/shortcodes/details.html
@@ -1,6 +1,7 @@
<details {{ if or (.Get "open") (in .Params "open") }}open{{ end }}>
- <summary>{{ cond .IsNamedParams (.Get "title") (.Get 0) }}</summary>
+ {{- $summary := cond .IsNamedParams (.Get "title") (.Get 0) -}}
+ <summary>{{ $summary | .Page.RenderString }}</summary>
<div class="markdown-inner">
- {{ .Inner | markdownify }}
+ {{ .Inner | .Page.RenderString }}
</div>
</details>