git.iko.soy/typeable/pandoc
on master help sign in
HTML reader: fix parsing unclosed th elements in a table.

Closes #6247.

commit792f1a6b5767dda2e774ec938de50248e1cece27 authorJohn MacFarlane <jgm@berkeley.edu> dateThu 2 Apr 2020, 07:58 (7 years ago) parent92e0801
1 file changed+1
src/Text/Pandoc/Readers/HTML.hs+1
src/Text/Pandoc/Readers/HTML.hs+1
@@ -909,6 +909,7 @@ pCloses tagtype = try $ do
909909 (TagClose "ol") | tagtype == "li" -> return ()
910910 (TagClose "dl") | tagtype == "dd" -> return ()
911911 (TagClose "table") | tagtype == "td" -> return ()
912+ (TagClose "table") | tagtype == "th" -> return ()
912913 (TagClose "table") | tagtype == "tr" -> return ()
913914 (TagClose "td") | tagtype `Set.member` blockHtmlTags -> return ()
914915 (TagClose "th") | tagtype `Set.member` blockHtmlTags -> return ()