From d097734189935e60c4b2394e768d8b25eaf46f6f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 12 May 2013 16:11:35 -0700 Subject: LaTeX reader: Skip positional options after `\begin{figure}`. --- src/Text/Pandoc/Readers/LaTeX.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index 37dd02e63..f3f76ce5c 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -808,6 +808,7 @@ environments :: M.Map String (LP Blocks) environments = M.fromList [ ("document", env "document" blocks <* skipMany anyChar) , ("letter", env "letter" letter_contents) + , ("figure", env "figure" $ skipopts *> blocks) , ("center", env "center" blocks) , ("tabular", env "tabular" simpTable) , ("quote", blockQuote <$> env "quote" blocks) -- cgit v1.2.3