git.iko.soy/typeable/pandoc
on master help sign in
LaTeX reader: ignore options in `\lstinline`.

Rather than raising a parse error. Closes #1997.

commitefdc1691fa4ebcbb3e76abd91c6703f4b3e53d0e authorJohn MacFarlane <jgm@berkeley.edu> dateSat 7 Mar 2015, 19:58 (12 years ago) parent0b42eb5
1 file changed+1−1
src/Text/Pandoc/Readers/LaTeX.hs+1−1
src/Text/Pandoc/Readers/LaTeX.hs+1−1
@@ -508,7 +508,7 @@ inlineCommands = M.fromList $
508508 , ("thanks", (note . mconcat) <$> (char '{' *> manyTill block (char '}')))
509509 , ("footnote", (note . mconcat) <$> (char '{' *> manyTill block (char '}')))
510510 , ("verb", doverb)
511− , ("lstinline", doverb)
511+ , ("lstinline", skipopts *> doverb)
512512 , ("Verb", doverb)
513513 , ("texttt", (code . stringify . toList) <$> tok)
514514 , ("url", (unescapeURL <$> braced) >>= \url ->