Another small performance improvement.

This commit is contained in:
John MacFarlane 2013-12-07 19:56:54 -08:00
parent e2c4156c20
commit 8e255fad98

View file

@ -733,9 +733,11 @@ listLine = try $ do
many (spaceChar)
listStart)
notFollowedBy' $ htmlTag (~== TagClose "div")
chunks <- manyTill (liftM snd (htmlTag isCommentTag)
<|> many1 (satisfy (/='\n'))
<|> count 1 anyChar) newline
chunks <- manyTill
( many1 (satisfy $ \c -> c /= '\n' && c /= '<')
<|> liftM snd (htmlTag isCommentTag)
<|> count 1 anyChar
) newline
return $ concat chunks
-- parse raw text for one list item, excluding start marker and continuations