mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-24 17:26:32 +00:00
HTML reader: td or th implicitly closes blocks within last td/th.
This commit is contained in:
@@ -1036,7 +1036,11 @@ _ `closes` "html" = False
|
||||
"body" `closes` "head" = True
|
||||
"a" `closes` "a" = True
|
||||
"li" `closes` "li" = True
|
||||
"th" `closes` t | t `elem` ["th","td"] = True
|
||||
t1 `closes` t2
|
||||
| t1 `elem` ["th","td"] &&
|
||||
t2 `Set.member` blockTags &&
|
||||
t2 /= "tr" &&
|
||||
t2 /= "table" = True
|
||||
"tr" `closes` t | t `elem` ["th","td","tr"] = True
|
||||
"dd" `closes` t | t `elem` ["dt", "dd"] = True
|
||||
"dt" `closes` t | t `elem` ["dt","dd"] = True
|
||||
|
||||
Reference in New Issue
Block a user