Another small performance improvement.
This commit is contained in:
parent
e2c4156c20
commit
8e255fad98
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue