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