diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-03-07 19:58:49 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-03-07 19:58:49 -0800 |
commit | efdc1691fa4ebcbb3e76abd91c6703f4b3e53d0e (patch) | |
tree | d54cc2a1a750aba19054513c9bac0dcd615d7e22 /src | |
parent | 0b42eb5f581e04ba4ea4baca4d5256e81bc6310e (diff) | |
download | pandoc-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.hs | 2 |
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 -> |