#370: Allow markdown in details shortcode, also change markdownify to RenderString in other shortcodes

This commit is contained in:
Alex Shpak
2021-08-30 14:32:11 +02:00
parent 4c1de2b3de
commit 0cde2e461d
4 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -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>