diff options
author | Vaclav Haisman <vhaisman@gmail.com> | 2017-11-03 01:21:21 +0100 |
---|---|---|
committer | Vaclav Haisman <vhaisman@gmail.com> | 2017-11-03 01:21:21 +0100 |
commit | 1089fab0835aa12b91a924913b00039e42ff7891 (patch) | |
tree | 3df0eebbf53e475125d5743f5ee331246c44ce2a /src/Text/Pandoc/Writers/LaTeX.hs | |
parent | 916a80ea7685262bc4fda2565deacdcb1c6e623c (diff) | |
parent | 5dfe131ee07065dc7b68912d9a068508e29e18a4 (diff) | |
download | pandoc-1089fab0835aa12b91a924913b00039e42ff7891.tar.gz |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/Text/Pandoc/Writers/LaTeX.hs')
-rw-r--r-- | src/Text/Pandoc/Writers/LaTeX.hs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index ab1e90b3b..156af4bb2 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -371,6 +371,10 @@ toSlides bs = do concat `fmap` mapM (elementToBeamer slideLevel) (hierarchicalize bs') elementToBeamer :: PandocMonad m => Int -> Element -> LW m [Block] +elementToBeamer _slideLevel (Blk (Div attr bs)) = do + -- make sure we support "blocks" inside divs + bs' <- concat `fmap` mapM (elementToBeamer 0) (hierarchicalize bs) + return [Div attr bs'] elementToBeamer _slideLevel (Blk b) = return [b] elementToBeamer slideLevel (Sec lvl _num (ident,classes,kvs) tit elts) | lvl > slideLevel = do @@ -831,7 +835,7 @@ defListItemToLaTeX (term, defs) = do else term' def' <- liftM vsep $ mapM blockListToLaTeX defs return $ case defs of - ((Header _ _ _ : _) : _) -> + ((Header{} : _) : _) -> "\\item" <> brackets term'' <> " ~ " $$ def' _ -> "\\item" <> brackets term'' $$ def' |