git.iko.soy/typeable/pandoc
on master help sign in
Revert "HTML reader: td or th implicitly closes blocks within last td/th."

This reverts commit d2c4243f89a6368d4f9f8a511d9b026d0be19cd8.

commitad2df0655eadcd0119a4f0ee2fea3666bb8495de authorJohn MacFarlane <jgm@berkeley.edu> dateTue 24 Oct 2017, 14:32 (9 years ago) parentd2c4243
1 file changed+1−5
src/Text/Pandoc/Readers/HTML.hs+1−5
src/Text/Pandoc/Readers/HTML.hs+1−5
@@ -1036,11 +1036,7 @@ _ `closes` "html" = False
10361036"body" `closes` "head" = True
10371037"a" `closes` "a" = True
10381038"li" `closes` "li" = True
1039−t1 `closes` t2
1040− | t1 `elem` ["th","td"] &&
1041− t2 `Set.member` blockTags &&
1042− t2 /= "tr" &&
1043− t2 /= "table" = True
1039+"th" `closes` t | t `elem` ["th","td"] = True
10441040"tr" `closes` t | t `elem` ["th","td","tr"] = True
10451041"dd" `closes` t | t `elem` ["dt", "dd"] = True
10461042"dt" `closes` t | t `elem` ["dt","dd"] = True