aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorAnthony Wang2024-01-05 20:13:08 -0600
committerAnthony Wang2024-01-05 20:13:08 -0600
commit0a54a08e1918d0907cf1b658f9e17112da90db4b (patch)
treec4211a2bbe38de9e4e84089ec02dc85e3d4bdc7f /layouts
parentcafbacfd3beed9b56760025548353cafbaf9f3bf (diff)
Write details shortcode so Markdown and quotes inside of details tag are rendered correctly
Diffstat (limited to 'layouts')
-rw-r--r--layouts/shortcodes/details.html4
-rw-r--r--layouts/shortcodes/rawhtml.html3
2 files changed, 5 insertions, 2 deletions
diff --git a/layouts/shortcodes/details.html b/layouts/shortcodes/details.html
new file mode 100644
index 0000000..2006b07
--- /dev/null
+++ b/layouts/shortcodes/details.html
@@ -0,0 +1,4 @@
+<details>
+ <summary>{{ .Get 0 }}</summary>
+ <p>{{ .Inner | markdownify }}</p>
+</details>
diff --git a/layouts/shortcodes/rawhtml.html b/layouts/shortcodes/rawhtml.html
index b90bea2..59448a1 100644
--- a/layouts/shortcodes/rawhtml.html
+++ b/layouts/shortcodes/rawhtml.html
@@ -1,2 +1 @@
-<!-- raw html -->
-{{.Inner}}
+{{ .Inner }}