git.iko.soy/typeable/pandoc
on master help sign in
reveal_js: nested vertical stacks used for hierarchical structure.

Variant of a patch from jamiefolson. Results for more than one level of nesting may be odd. Perhaps this needs revising.

commit2ec59935de08912315c345aa4a8957362afcd784 authorJohn MacFarlane <jgm@berkeley.edu> dateThu 21 Mar 2013, 15:46 (14 years ago) parent5b424f8
1 file changed+4−2
src/Text/Pandoc/Writers/HTML.hs+4−2
src/Text/Pandoc/Writers/HTML.hs+4−2
@@ -310,8 +310,10 @@ elementToHtml slideLevel opts (Sec level num (id',classes,keyvals) title' elemen
310310 else H.div
311311 let attr = (id',classes',keyvals)
312312 return $ if titleSlide
313− then mconcat $
314− (addAttrs opts attr $ secttag $ header') : innerContents
313+ then (if writerSlideVariant opts == RevealJsSlides
314+ then H5.section
315+ else id) $ mconcat $
316+ (addAttrs opts attr $ secttag $ header') : innerContents
315317 else if writerSectionDivs opts || slide
316318 then addAttrs opts attr
317319 $ secttag $ inNl $ header' : innerContents