diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-11-14 08:10:53 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-11-14 08:10:53 -0800 |
commit | 703cbf437c9bcef9ee135f80422fb681cbbc76fa (patch) | |
tree | b199cd167fc6370bf9410f27e42c9acc56cd2ee4 /src | |
parent | cc5afbb8342458dea0eb5eb2c08b11b78220b831 (diff) | |
download | pandoc-703cbf437c9bcef9ee135f80422fb681cbbc76fa.tar.gz |
Markdown reader: use take1WhileP for table row.
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Readers/Markdown.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs index 1691c9ab4..cc3173719 100644 --- a/src/Text/Pandoc/Readers/Markdown.hs +++ b/src/Text/Pandoc/Readers/Markdown.hs @@ -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 |