diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-10-24 14:45:43 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-10-24 14:45:43 -0700 |
commit | ebc801cfc5ef99bf05d63aaac4c2ee471e40f372 (patch) | |
tree | 5c5b903f6562e1494c3dd6185886c0a49771f6df | |
parent | 38b5f24a668418a27fcea11a56f8961b41515299 (diff) | |
download | pandoc-ebc801cfc5ef99bf05d63aaac4c2ee471e40f372.tar.gz |
HTML reader: close td/th should close any open block tag...
Closes #3991.
-rw-r--r-- | src/Text/Pandoc/Readers/HTML.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/HTML.hs b/src/Text/Pandoc/Readers/HTML.hs index 6b3f06f4b..c648c8628 100644 --- a/src/Text/Pandoc/Readers/HTML.hs +++ b/src/Text/Pandoc/Readers/HTML.hs @@ -847,6 +847,8 @@ pCloses tagtype = try $ do (TagClose "dl") | tagtype == "dd" -> return () (TagClose "table") | tagtype == "td" -> return () (TagClose "table") | tagtype == "tr" -> return () + (TagClose "td") | tagtype `Set.member` blockHtmlTags -> return () + (TagClose "th") | tagtype `Set.member` blockHtmlTags -> return () (TagClose t') | tagtype == "p" && t' `Set.member` blockHtmlTags -> return () -- see #3794 _ -> mzero |