From 8a157ff83930d3a630168020a963a1ea08bfd6ae Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Sun, 18 Nov 2018 23:40:18 -0800
Subject: [PATCH] LaTeX reader: allow optional arguments after \\ in tables.

---
 src/Text/Pandoc/Readers/LaTeX.hs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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 '&'