[Shortcode] Add option to write markdown inside details
This commit is contained in:
parent
b61088d52a
commit
6f457b18c7
1 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
<details {{ with .Get "class" }} class="{{ . }}"{{ end }}><summary>{{ .Get "title" }}</summary>
|
<details {{ with .Get "class" }} class="{{ . }}"{{ end }}><summary>{{ .Get "title" }}</summary>
|
||||||
|
{{ if .Get "md" }}
|
||||||
|
{{ .Inner | markdownify }}
|
||||||
|
{{ else }}
|
||||||
{{ .Inner }}
|
{{ .Inner }}
|
||||||
|
{{ end }}
|
||||||
</details>
|
</details>
|
||||||
|
|
Loading…
Reference in a new issue