aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-03-07 19:58:49 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-03-07 19:58:49 -0800
commitefdc1691fa4ebcbb3e76abd91c6703f4b3e53d0e (patch)
treed54cc2a1a750aba19054513c9bac0dcd615d7e22 /src
parent0b42eb5f581e04ba4ea4baca4d5256e81bc6310e (diff)
downloadpandoc-efdc1691fa4ebcbb3e76abd91c6703f4b3e53d0e.tar.gz
LaTeX reader: ignore options in `\lstinline`.
Rather than raising a parse error. Closes #1997.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs2
1 files changed, 1 insertions, 1 deletions
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 ->