git.iko.soy/typeable/pandoc
on master help sign in
Add "summary" to list of block-level HTML tags.
f6dfacfJohn MacFarlane
src/Text/Pandoc/Readers/HTML.hs+1−1
@@ -1067,7 +1067,7 @@ blockHtmlTags = Set.fromList
1067 "h5", "h6", "head", "header", "hgroup", "hr", "html",
1067 "h5", "h6", "head", "header", "hgroup", "hr", "html",
1068 "isindex", "main", "menu", "meta", "noframes", "nav",
1068 "isindex", "main", "menu", "meta", "noframes", "nav",
1069 "ol", "output", "p", "pre",
1069 "ol", "output", "p", "pre",
1070− "section", "table", "tbody", "textarea",
1070+ "section", "summary", "table", "tbody", "textarea",
1071 "thead", "tfoot", "ul", "dd",
1071 "thead", "tfoot", "ul", "dd",
1072 "dt", "frameset", "li", "tbody", "td", "tfoot",
1072 "dt", "frameset", "li", "tbody", "td", "tfoot",
1073 "th", "thead", "tr", "script", "style"]
1073 "th", "thead", "tr", "script", "style"]
test/command/6385.mdnew file+18
@@ -0,0 +1,18 @@
1+```
2+% pandoc -f markdown -t html
3+<details>
4+<summary>Show me:</summary>
5+details para 1
6+
7+details para 2
8+
9+</details>
10+^D
11+<details>
12+<summary>
13+Show me:
14+</summary>
15+<p>details para 1</p>
16+<p>details para 2</p>
17+</details>
18+```