From efdc1691fa4ebcbb3e76abd91c6703f4b3e53d0e Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Sat, 7 Mar 2015 19:58:49 -0800
Subject: [PATCH] LaTeX reader: ignore options in `\lstinline`.

Rather than raising a parse error.  Closes #1997.
---
 src/Text/Pandoc/Readers/LaTeX.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 942b9f3b3..a071578fe 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -508,7 +508,7 @@ inlineCommands = M.fromList $
   , ("thanks", (note . mconcat) <$> (char '{' *> manyTill block (char '}')))
   , ("footnote", (note . mconcat) <$> (char '{' *> manyTill block (char '}')))
   , ("verb", doverb)
-  , ("lstinline", doverb)
+  , ("lstinline", skipopts *> doverb)
   , ("Verb", doverb)
   , ("texttt", (code . stringify . toList) <$> tok)
   , ("url", (unescapeURL <$> braced) >>= \url ->