aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-11-12 14:19:58 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2017-11-12 14:19:58 -0800
commit7ba0ae8b4d9a6d3e7d4484a5f257e1e53f35667d (patch)
treebb1f0a8c26ee135a0af56dce9d0489fd15c63e46 /src/Text/Pandoc
parentb4f68a5a9fb189ad36b25a5029b6e6ef7ea05039 (diff)
downloadpandoc-7ba0ae8b4d9a6d3e7d4484a5f257e1e53f35667d.tar.gz
LaTeX reader: allow optional args for parbox.
See #4056.
Diffstat (limited to 'src/Text/Pandoc')
-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 9bac3d3a7..708980f1d 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -2003,7 +2003,7 @@ closing = do
blockCommands :: PandocMonad m => M.Map Text (LP m Blocks)
blockCommands = M.fromList $
[ ("par", mempty <$ skipopts)
- , ("parbox", braced >> grouped blocks)
+ , ("parbox", skipopts >> braced >> grouped blocks)
, ("title", mempty <$ (skipopts *>
(grouped inline >>= addMeta "title")
<|> (grouped block >>= addMeta "title")))