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:
parent
cab4b829b3
commit
b3b40546cb
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue