[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>
|
||||||
{{ .Inner }}
|
{{ if .Get "md" }}
|
||||||
|
{{ .Inner | markdownify }}
|
||||||
|
{{ else }}
|
||||||
|
{{ .Inner }}
|
||||||
|
{{ end }}
|
||||||
</details>
|
</details>
|
||||||
|
|
Loading…
Reference in a new issue