From 792f1a6b5767dda2e774ec938de50248e1cece27 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 2 Apr 2020 07:58:52 -0700 Subject: HTML reader: fix parsing unclosed th elements in a table. Closes #6247. --- src/Text/Pandoc/Readers/HTML.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Text/Pandoc/Readers/HTML.hs b/src/Text/Pandoc/Readers/HTML.hs index dcd3c0582..6cfef0ebe 100644 --- a/src/Text/Pandoc/Readers/HTML.hs +++ b/src/Text/Pandoc/Readers/HTML.hs @@ -909,6 +909,7 @@ pCloses tagtype = try $ do (TagClose "ol") | tagtype == "li" -> return () (TagClose "dl") | tagtype == "dd" -> return () (TagClose "table") | tagtype == "td" -> return () + (TagClose "table") | tagtype == "th" -> return () (TagClose "table") | tagtype == "tr" -> return () (TagClose "td") | tagtype `Set.member` blockHtmlTags -> return () (TagClose "th") | tagtype `Set.member` blockHtmlTags -> return () -- cgit v1.2.3