enhance collapse shortcode
This commit is contained in:
parent
0654046820
commit
c369bd5b3f
|
@ -1,8 +1,4 @@
|
||||||
{{ if .Get "summary" }}
|
|
||||||
{{ else }}
|
|
||||||
{{ warnf "missing value for param 'summary': %s" .Position }}
|
|
||||||
{{ end }}
|
|
||||||
<p><details {{ if (eq (.Get "openByDefault") true) }} open=true {{ end }}>
|
<p><details {{ if (eq (.Get "openByDefault") true) }} open=true {{ end }}>
|
||||||
<summary markdown="span">{{ .Get "summary" | markdownify }}</summary>
|
<summary markdown="span">{{ .Get 0 | markdownify }}</summary>
|
||||||
{{ .Inner | markdownify }}
|
{{ .Inner | markdownify }}
|
||||||
</details></p>
|
</details></p>
|
||||||
|
|
Loading…
Reference in New Issue