Skip to content

Commit 8c2f997

Browse files
author
drizzle
authored
collapse shortcode content can write formative code and change line (#561)
1 parent 4e9b047 commit 8c2f997

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

layouts/shortcodes/collapse.html

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
{{ if .Get "content" }}
21
{{ if .Get "summary" }}
32
{{ else }}
43
{{ warnf "missing value for param 'summary': %s" .Position }}
54
{{ end }}
6-
{{ else }}
7-
{{ errorf "missing value for param 'content': %s" .Position }}
8-
{{ end }}
95
<p><details {{ if (eq (.Get "openByDefault") true) }} open=true {{ end }}>
106
<summary markdown="span">{{ .Get "summary" | markdownify }}</summary>
11-
{{ .Get "content" | markdownify }}
7+
{{ .Inner | markdownify }}
128
</details></p>

0 commit comments

Comments
 (0)