git.iko.soy/typeable/pandoc
on master help sign in
Add "summary" to list of block-level HTML tags.

Closes #6385. (The summary element needs to be the first child of details and should not be enclosed by p tags.) NOTE: you need to include a blank line before the closing `</details>`, if you want the last part of the content to be parsed as a paragraph.

commitf6dfacf9d67d25efad539c3c242a63815ae4f6c7 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 20 May 2020, 07:45 (6 years ago) parent311d4c9
2 files changed+19−1
src/Text/Pandoc/Readers/HTML.hs+1−1 test/command/6385.md+18
src/Text/Pandoc/Readers/HTML.hs+1−1
@@ -1067,7 +1067,7 @@ blockHtmlTags = Set.fromList
10671067 "h5", "h6", "head", "header", "hgroup", "hr", "html",
10681068 "isindex", "main", "menu", "meta", "noframes", "nav",
10691069 "ol", "output", "p", "pre",
1070− "section", "table", "tbody", "textarea",
1070+ "section", "summary", "table", "tbody", "textarea",
10711071 "thead", "tfoot", "ul", "dd",
10721072 "dt", "frameset", "li", "tbody", "td", "tfoot",
10731073 "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+```