aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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$"