git.iko.soy/typeable/pandoc
on master help sign in
HTML reader: td or th implicitly closes blocks within last td/th.
d2c4243John MacFarlane
src/Text/Pandoc/Readers/HTML.hs+5−1
@@ -1036,7 +1036,11 @@ _ `closes` "html" = False
1036"body" `closes` "head" = True
1036"body" `closes` "head" = True
1037"a" `closes` "a" = True
1037"a" `closes` "a" = True
1038"li" `closes` "li" = True
1038"li" `closes` "li" = True
1039+t1 `closes` t2
1039−"th" `closes` t | t `elem` ["th","td"] = True
1040+ | t1 `elem` ["th","td"] &&
1041+ t2 `Set.member` blockTags &&
1042+ t2 /= "tr" &&
1043+ t2 /= "table" = True
1040"tr" `closes` t | t `elem` ["th","td","tr"] = True
1044"tr" `closes` t | t `elem` ["th","td","tr"] = True
1041"dd" `closes` t | t `elem` ["dt", "dd"] = True
1045"dd" `closes` t | t `elem` ["dt", "dd"] = True
1042"dt" `closes` t | t `elem` ["dt","dd"] = True
1046"dt" `closes` t | t `elem` ["dt","dd"] = True