Skip to content

Commit

Permalink
Fixed lstlisting environment in LaTeX reader.
Browse files Browse the repository at this point in the history
Closes jgm#443.
  • Loading branch information
jgm committed Mar 10, 2012
1 parent 7253946 commit a768844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Readers/LaTeX.hs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ environments = M.fromList
verbEnv "code")) verbEnv "code"))
, ("verbatim", codeBlock <$> (verbEnv "verbatim")) , ("verbatim", codeBlock <$> (verbEnv "verbatim"))
, ("Verbatim", codeBlock <$> (verbEnv "Verbatim")) , ("Verbatim", codeBlock <$> (verbEnv "Verbatim"))
, ("lstlisting", codeBlock <$> (verbEnv "listlisting")) , ("lstlisting", codeBlock <$> (verbEnv "lstlisting"))
, ("minted", liftA2 (\l c -> codeBlockWith ("",[l],[]) c) , ("minted", liftA2 (\l c -> codeBlockWith ("",[l],[]) c)
(grouped (many1 $ satisfy (/= '}'))) (verbEnv "minted")) (grouped (many1 $ satisfy (/= '}'))) (verbEnv "minted"))
, ("displaymath", mathEnv Nothing "displaymath") , ("displaymath", mathEnv Nothing "displaymath")
Expand Down

0 comments on commit a768844

Please sign in to comment.