aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2011-10-27 12:00:34 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2011-10-27 12:00:34 -0700
commit1a1f6cb08bc82c3c293dce42a73a43a5071b56f9 (patch)
tree85bb89ff0b5a0c9f9b4b03b991ed3f6d5eb07c31
parent3475e7ec8b790f87aed9b9fc2f1fd879a9493f17 (diff)
downloadpandoc-1a1f6cb08bc82c3c293dce42a73a43a5071b56f9.tar.gz
Added TOC identifier in EPUB page template.
Closes #329.
-rw-r--r--src/Text/Pandoc/Writers/EPUB.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/EPUB.hs b/src/Text/Pandoc/Writers/EPUB.hs
index 9fc393fed..eb915fef5 100644
--- a/src/Text/Pandoc/Writers/EPUB.hs
+++ b/src/Text/Pandoc/Writers/EPUB.hs
@@ -314,7 +314,9 @@ pageTemplate = unlines
, "$else$"
, "<h1>$title$</h1>"
, "$if(toc)$"
+ , "<div id=\"$idprefix$TOC\">"
, "$toc$"
+ , "</div>"
, "$endif$"
, "$endif$"
, "$body$"