git.iko.soy/typeable/pandoc
on master help sign in
Avoid repeated id in section and header in HTML slides.

Previously pandoc would use the same id attribute for the div or section and the header inside it; now the id is omitted from the header if the div or section has it.

commit2f535ceda3ab02605f5b19dafd8976240b1b5d83 authorJohn MacFarlane <fiddlosopher@gmail.com> dateThu 29 Mar 2012, 11:09 (15 years ago) parentb50d01a
1 file changed+2−3
src/Text/Pandoc/Writers/HTML.hs+2−3
src/Text/Pandoc/Writers/HTML.hs+2−3
@@ -264,9 +264,8 @@ elementToHtml slideLevel opts (Sec level num id' title' elements) = do
264264 -- title slides have no content of their own
265265 then filter isSec elements
266266 else elements
267− let header'' = if (writerStrictMarkdown opts ||
268− writerSectionDivs opts ||
269− writerSlideVariant opts == S5Slides)
267+ let header'' = if (writerStrictMarkdown opts || writerSectionDivs opts ||
268+ writerSlideVariant opts == S5Slides || slide)
270269 then header'
271270 else header' ! prefixedId opts id'
272271 let inNl x = mconcat $ nl opts : intersperse (nl opts) x ++ [nl opts]