From 4ffff62097cd13ee6e6df7705314fd22191c3fb3 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 25 Jan 2012 11:30:12 -0800 Subject: Fixed regression in HTML writer: all headers level 1! --- src/Text/Pandoc/Writers/HTML.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index 99aa8653c..adf59ae4d 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -250,7 +250,9 @@ elementToHtml _slideLevel opts (Blk block) = blockToHtml opts block elementToHtml slideLevel opts (Sec level num id' title' elements) = do let slide = writerSlideVariant opts /= NoSlides && level <= slideLevel modify $ \st -> st{stSecNum = num} -- update section number - header' <- blockToHtml opts (Header 1 title') -- always use level 1 for slide titles + -- always use level 1 for slide titles + let level' = if slide then 1 else level + header' <- blockToHtml opts (Header level' title') innerContents <- mapM (elementToHtml slideLevel opts) elements let header'' = if (writerStrictMarkdown opts || writerSectionDivs opts || -- cgit v1.2.3