Markdown reader: use take1WhileP for table row.
commit703cbf437c9bcef9ee135f80422fb681cbbc76fa
authorJohn MacFarlane <jgm@berkeley.edu>
dateThu 14 Nov 2019, 08:10 (7 years ago)
parentcc5afbb
src/Text/Pandoc/Readers/Markdown.hs+1−1
@@ -1286,7 +1286,7 @@ rawTableLine :: PandocMonad m
12861286 -> MarkdownParser m [Text]
12871287rawTableLine indices = do
12881288 notFollowedBy' (blanklines' <|> tableFooter)
1289− line <- many1TillChar anyChar newline
1289+ line <- take1WhileP (/='\n') <* newline
12901290 return $ map trim $ tail $
12911291 splitTextByIndices (init indices) line
12921292