git.iko.soy/typeable/pandoc
on master help sign in
HTML reader: Removed "button" from block tag list.

It is already in the eitherBlockOrInlineTag list, and should be both places. Closes #3717. Note: the result of this change is that there will be p tags around the whole paragraph. That is the right result, because the `button` tags are treated as inline HTML here, and the whole chunk of text is a Markdown paragraph.

commit0f07404daf08156fac655f0ff907a6126c639450 authorJohn MacFarlane <jgm@berkeley.edu> dateThu 1 Jun 2017, 18:59 (9 years ago) parent8218bdb
1 file changed+1−1
src/Text/Pandoc/Readers/HTML.hs+1−1
src/Text/Pandoc/Readers/HTML.hs+1−1
@@ -886,7 +886,7 @@ inlineHtmlTags = ["a", "abbr", "acronym", "b", "basefont", "bdo", "big",
886886
887887blockHtmlTags :: [String]
888888blockHtmlTags = ["?xml", "!DOCTYPE", "address", "article", "aside",
889− "blockquote", "body", "button", "canvas",
889+ "blockquote", "body", "canvas",
890890 "caption", "center", "col", "colgroup", "dd", "details",
891891 "dir", "div",
892892 "dl", "dt", "fieldset", "figcaption", "figure",