aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-06-12 22:49:19 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-06-12 22:49:19 -0700
commit4b6e279e3acf01ace9831a9e98d76af92befe60f (patch)
tree0e5b2259a33657a61cbf57f2314b659d16b2d64a /src
parente78db3caf6703fb98f671cd3dbdc2e7840ce406c (diff)
parentabbf33ae7d6ee3358fd74e434ccd897c774bc3d0 (diff)
downloadpandoc-4b6e279e3acf01ace9831a9e98d76af92befe60f.tar.gz
Merge pull request #1336 from aspnes/master
allow (and discard) optional argument for \caption
Diffstat (limited to 'src')
-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 >>=