mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 17:56:32 +00:00
Markdown reader: use take1WhileP for table row.
This commit is contained in:
@@ -1286,7 +1286,7 @@ rawTableLine :: PandocMonad m
|
||||
-> MarkdownParser m [Text]
|
||||
rawTableLine indices = do
|
||||
notFollowedBy' (blanklines' <|> tableFooter)
|
||||
line <- many1TillChar anyChar newline
|
||||
line <- take1WhileP (/='\n') <* newline
|
||||
return $ map trim $ tail $
|
||||
splitTextByIndices (init indices) line
|
||||
|
||||
|
||||
Reference in New Issue
Block a user