Markdown reader: use take1WhileP for table row.

This commit is contained in:
John MacFarlane 2019-11-14 08:10:53 -08:00
parent cc5afbb834
commit 703cbf437c

View file

@ -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