diff options
author | Anthony Wang | 2024-01-05 20:13:08 -0600 |
---|---|---|
committer | Anthony Wang | 2024-01-05 20:13:08 -0600 |
commit | 0a54a08e1918d0907cf1b658f9e17112da90db4b (patch) | |
tree | c4211a2bbe38de9e4e84089ec02dc85e3d4bdc7f /layouts | |
parent | cafbacfd3beed9b56760025548353cafbaf9f3bf (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.html | 4 | ||||
-rw-r--r-- | layouts/shortcodes/rawhtml.html | 3 |
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 }} |