aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-11-18 23:40:18 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2018-11-18 23:40:18 -0800
commit8a157ff83930d3a630168020a963a1ea08bfd6ae (patch)
tree956a4a0234668012129e03395a4e25dee6639129 /src/Text/Pandoc
parent681afbfaac1589dbcd4149c185657b10b7df1d47 (diff)
downloadpandoc-8a157ff83930d3a630168020a963a1ea08bfd6ae.tar.gz
LaTeX reader: allow optional arguments after \\ in tables.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 7d2d62762..f91e62d31 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -2119,7 +2119,8 @@ hline = try $ do
return ()
lbreak :: PandocMonad m => LP m Tok
-lbreak = (controlSeq "\\" <|> controlSeq "tabularnewline") <* spaces
+lbreak = (controlSeq "\\" <|> controlSeq "tabularnewline")
+ <* skipopts <* spaces
amp :: PandocMonad m => LP m Tok
amp = symbol '&'