A list can contain a blockquote as well.
This commit is contained in:
@@ -335,7 +335,7 @@ parseListParaItemCommon :: ReadP [MdToken]
|
|||||||
parseListParaItemCommon = do
|
parseListParaItemCommon = do
|
||||||
char '\n'
|
char '\n'
|
||||||
lines <- greedyParse1 ((string " " <|> string "\t") *> parseTillEol)
|
lines <- greedyParse1 ((string " " <|> string "\t") *> parseTillEol)
|
||||||
let res = fst $ leftmostLongestParse (greedyParse1 parsePara) (init $ unlines lines)
|
let res = fst $ leftmostLongestParse (greedyParse1 parseBlockquote <++ greedyParse1 parsePara) (init $ unlines lines)
|
||||||
char '\n'
|
char '\n'
|
||||||
return res -- I only wrap this in a document because I want some way of converting [MdToken] to MdToken, without any overhead. There is no other reason to wrap it in a Document.
|
return res -- I only wrap this in a document because I want some way of converting [MdToken] to MdToken, without any overhead. There is no other reason to wrap it in a Document.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user