aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/HTML.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-05-20 07:45:14 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-05-20 07:45:14 -0700
commitf6dfacf9d67d25efad539c3c242a63815ae4f6c7 (patch)
tree143a8d902c150e7d605ab7fa4c1234d45f1d50d2 /src/Text/Pandoc/Readers/HTML.hs
parent311d4c9dfcf61e6e0bd9fdf8ff351d8900bc9a58 (diff)
downloadpandoc-f6dfacf9d67d25efad539c3c242a63815ae4f6c7.tar.gz
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.
Diffstat (limited to 'src/Text/Pandoc/Readers/HTML.hs')
-rw-r--r--src/Text/Pandoc/Readers/HTML.hs2
1 files changed, 1 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"]