diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-06-12 22:49:19 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-06-12 22:49:19 -0700 |
commit | 4b6e279e3acf01ace9831a9e98d76af92befe60f (patch) | |
tree | 0e5b2259a33657a61cbf57f2314b659d16b2d64a /src/Text/Pandoc/Readers | |
parent | e78db3caf6703fb98f671cd3dbdc2e7840ce406c (diff) | |
parent | abbf33ae7d6ee3358fd74e434ccd897c774bc3d0 (diff) | |
download | pandoc-4b6e279e3acf01ace9831a9e98d76af92befe60f.tar.gz |
Merge pull request #1336 from aspnes/master
allow (and discard) optional argument for \caption
Diffstat (limited to 'src/Text/Pandoc/Readers')
-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 >>= |