aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-05-12 16:11:35 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-05-12 16:11:35 -0700
commitd097734189935e60c4b2394e768d8b25eaf46f6f (patch)
tree5e18b2eeda8fdfbd3366677371f9c3002e04e964 /src
parentaf6f216c96a6ca65de0cb6ee85909ea3c70f6eda (diff)
downloadpandoc-d097734189935e60c4b2394e768d8b25eaf46f6f.tar.gz
LaTeX reader: Skip positional options after `\begin{figure}`.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs1
1 files changed, 1 insertions, 0 deletions
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)