aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Aspnes <aspnes@cs.yale.edu>2014-06-12 21:19:00 -0400
committerJames Aspnes <aspnes@cs.yale.edu>2014-06-12 21:19:00 -0400
commitabbf33ae7d6ee3358fd74e434ccd897c774bc3d0 (patch)
tree0e5b2259a33657a61cbf57f2314b659d16b2d64a
parente78db3caf6703fb98f671cd3dbdc2e7840ce406c (diff)
downloadpandoc-abbf33ae7d6ee3358fd74e434ccd897c774bc3d0.tar.gz
allow (and discard) optional argument for \caption
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index c3c0ba423..6b5958920 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -305,7 +305,7 @@ blockCommands = M.fromList $
, ("item", skipopts *> loose_item)
, ("documentclass", skipopts *> braced *> preamble)
, ("centerline", (para . trimInlines) <$> (skipopts *> tok))
- , ("caption", tok >>= setCaption)
+ , ("caption", skipopts *> tok >>= setCaption)
, ("PandocStartInclude", startInclude)
, ("PandocEndInclude", endInclude)
, ("bibliography", mempty <$ (skipopts *> braced >>=