Enforce at least one space between list indicator and list text.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user