mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 01:36:45 +00:00
RST reader: use anyLineNewline in rawListItem (#3702)
This commit is contained in:
committed by
John MacFarlane
parent
8614902234
commit
c38d5966ed
@@ -568,9 +568,9 @@ rawListItem :: Monad m => RSTParser m Int
|
||||
-> RSTParser m (Int, [Char])
|
||||
rawListItem start = try $ do
|
||||
markerLength <- start
|
||||
firstLine <- anyLine
|
||||
firstLine <- anyLineNewline
|
||||
restLines <- many (listLine markerLength)
|
||||
return (markerLength, (firstLine ++ "\n" ++ (concat restLines)))
|
||||
return (markerLength, firstLine ++ concat restLines)
|
||||
|
||||
-- continuation of a list item - indented and separated by blankline or
|
||||
-- (in compact lists) endline.
|
||||
|
||||
Reference in New Issue
Block a user