[Shortcode] Add option to write markdown inside details

This commit is contained in:
Gregory Trolliet 2020-09-22 14:56:12 +02:00
parent b61088d52a
commit 6f457b18c7

View file

@ -1,3 +1,7 @@
<details {{ with .Get "class" }} class="{{ . }}"{{ end }}><summary>{{ .Get "title" }}</summary> <details {{ with .Get "class" }} class="{{ . }}"{{ end }}><summary>{{ .Get "title" }}</summary>
{{ .Inner }} {{ if .Get "md" }}
{{ .Inner | markdownify }}
{{ else }}
{{ .Inner }}
{{ end }}
</details> </details>