|
|
@ -333,6 +333,7 @@ parseUListNested = do
|
|
|
|
parseUListLineItem :: ReadP MdToken
|
|
|
|
parseUListLineItem :: ReadP MdToken
|
|
|
|
parseUListLineItem = do
|
|
|
|
parseUListLineItem = do
|
|
|
|
firstChar <- choice (map char ['*', '+', '-'])
|
|
|
|
firstChar <- choice (map char ['*', '+', '-'])
|
|
|
|
|
|
|
|
char ' ' -- At least one space between list indicator and list text.
|
|
|
|
skipSpaces
|
|
|
|
skipSpaces
|
|
|
|
restOfLine <- manyTill get (void (char '\n') <++ eof)
|
|
|
|
restOfLine <- manyTill get (void (char '\n') <++ eof)
|
|
|
|
let restOfLineParsed = fst $ leftmostLongestParse parseLine restOfLine
|
|
|
|
let restOfLineParsed = fst $ leftmostLongestParse parseLine restOfLine
|
|
|
|