diff options
author | James Aspnes <aspnes@cs.yale.edu> | 2014-06-12 21:19:00 -0400 |
---|---|---|
committer | James Aspnes <aspnes@cs.yale.edu> | 2014-06-12 21:19:00 -0400 |
commit | abbf33ae7d6ee3358fd74e434ccd897c774bc3d0 (patch) | |
tree | 0e5b2259a33657a61cbf57f2314b659d16b2d64a /src/Text/Pandoc | |
parent | e78db3caf6703fb98f671cd3dbdc2e7840ce406c (diff) | |
download | pandoc-abbf33ae7d6ee3358fd74e434ccd897c774bc3d0.tar.gz |
allow (and discard) optional argument for \caption
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX.hs | 2 |
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 >>= |