Skip to content

Commit

Permalink
HTML writer: avoid adding extra section nestings for revealjs.
Browse files Browse the repository at this point in the history
Previously revealjs title slides at level (slidelevel - 1)
were nested under an extra section element, even when
the section contained no additional (vertical) content.
That caused problems for some transition effects.
See hakimel/reveal.js#1947.
  • Loading branch information
jgm committed Sep 28, 2018
1 parent 5365779 commit 0b3e885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Writers/HTML.hs
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ elementToHtml slideLevel opts (Sec level num (id',classes,keyvals) title' elemen
t <- addAttrs opts attr $
secttag header'
return $
(if slideVariant == RevealJsSlides
(if slideVariant == RevealJsSlides && not (null innerContents)
then H5.section
else id) $ mconcat $ t : innerContents
else if writerSectionDivs opts || slide
Expand Down

0 comments on commit 0b3e885

Please sign in to comment.