From ec011355942d1b8612c61664a4e0a37d86339fdd Mon Sep 17 00:00:00 2001
From: Karl <kc0bfv@gmail.com>
Date: Sat, 15 Feb 2020 16:40:12 +0000
Subject: [PATCH] Dropdown shortcode handle markdown correctly
---
exampleSite/content/emoji-support.md | 7 ++++++-
layouts/shortcodes/dropdown.md | 2 +-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/exampleSite/content/emoji-support.md b/exampleSite/content/emoji-support.md
index 2d88bc5..69322f0 100644
--- a/exampleSite/content/emoji-support.md
+++ b/exampleSite/content/emoji-support.md
@@ -54,5 +54,10 @@
{{< /css.inline >}}
{{< dropdown summary="This demonstrates the dropdown shortcode. Click this." >}}
- This stuff drops down because you clicked on the text.
+* This stuff drops down because you clicked on the text.
+* Markdown is supported in here.
+
+```
+# Code sections can go in here too
+```
{{< /dropdown >}}
diff --git a/layouts/shortcodes/dropdown.md b/layouts/shortcodes/dropdown.md
index 1c0c569..b9829cb 100644
--- a/layouts/shortcodes/dropdown.md
+++ b/layouts/shortcodes/dropdown.md
@@ -1,4 +1,4 @@
<details>
<summary>{{ .Get "summary" }}</summary>
- {{ .Inner }}
+ {{ .Inner | markdownify }}
</details>
--
Gitblit v1.10.0