aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Text/Pandoc/Readers/HTML.hs2
-rw-r--r--test/command/6385.md18
2 files changed, 19 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/HTML.hs b/src/Text/Pandoc/Readers/HTML.hs
index f85b24d3f..3f6e0a1af 100644
--- a/src/Text/Pandoc/Readers/HTML.hs
+++ b/src/Text/Pandoc/Readers/HTML.hs
@@ -1067,7 +1067,7 @@ blockHtmlTags = Set.fromList
"h5", "h6", "head", "header", "hgroup", "hr", "html",
"isindex", "main", "menu", "meta", "noframes", "nav",
"ol", "output", "p", "pre",
- "section", "table", "tbody", "textarea",
+ "section", "summary", "table", "tbody", "textarea",
"thead", "tfoot", "ul", "dd",
"dt", "frameset", "li", "tbody", "td", "tfoot",
"th", "thead", "tr", "script", "style"]
diff --git a/test/command/6385.md b/test/command/6385.md
new file mode 100644
index 000000000..f67b82988
--- /dev/null
+++ b/test/command/6385.md
@@ -0,0 +1,18 @@
+```
+% pandoc -f markdown -t html
+<details>
+<summary>Show me:</summary>
+details para 1
+
+details para 2
+
+</details>
+^D
+<details>
+<summary>
+Show me:
+</summary>
+<p>details para 1</p>
+<p>details para 2</p>
+</details>
+```