mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-25 00:45:47 +00:00
HTML reader: Fix performance issue with malformed HTML tables.
We let a `</table>` tag close an open `<tr>` or `<td>`. Closes #1167.
This commit is contained in:
@@ -471,6 +471,8 @@ pCloses tagtype = try $ do
|
||||
(TagClose "ul") | tagtype == "li" -> return ()
|
||||
(TagClose "ol") | tagtype == "li" -> return ()
|
||||
(TagClose "dl") | tagtype == "li" -> return ()
|
||||
(TagClose "table") | tagtype == "td" -> return ()
|
||||
(TagClose "table") | tagtype == "tr" -> return ()
|
||||
_ -> mzero
|
||||
|
||||
pTagText :: TagParser Inlines
|
||||
|
||||
Reference in New Issue
Block a user