git.iko.soy/typeable/pandoc
on master help sign in
Added TOC identifier in EPUB page template.

Closes #329.

commit1a1f6cb08bc82c3c293dce42a73a43a5071b56f9 authorJohn MacFarlane <fiddlosopher@gmail.com> dateThu 27 Oct 2011, 12:00 (15 years ago) parent3475e7e
1 file changed+2
src/Text/Pandoc/Writers/EPUB.hs+2
src/Text/Pandoc/Writers/EPUB.hs+2
@@ -314,7 +314,9 @@ pageTemplate = unlines
314314 , "$else$"
315315 , "<h1>$title$</h1>"
316316 , "$if(toc)$"
317+ , "<div id=\"$idprefix$TOC\">"
317318 , "$toc$"
319+ , "</div>"
318320 , "$endif$"
319321 , "$endif$"
320322 , "$body$"