Try and backtrack
This commit is contained in:
@@ -377,7 +377,7 @@ parseListLineItemCommon :: Parser MdToken
|
|||||||
parseListLineItemCommon = do
|
parseListLineItemCommon = do
|
||||||
space
|
space
|
||||||
restOfLine <- manyTill parseListLineToken (void (char '\n') <|> eof)
|
restOfLine <- manyTill parseListLineToken (void (char '\n') <|> eof)
|
||||||
nestedList <- parseListNested <|> return (Unit "")
|
nestedList <- try parseListNested <|> return (Unit "")
|
||||||
return $ Line [Line restOfLine, nestedList]
|
return $ Line [Line restOfLine, nestedList]
|
||||||
|
|
||||||
-- Parse an unordered list paragraph item.
|
-- Parse an unordered list paragraph item.
|
||||||
|
Reference in New Issue
Block a user