aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2011-02-06 08:59:51 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2011-02-06 08:59:51 -0800
commit9b38b69c947cae11948c9b363c223e27f34a4b25 (patch)
tree8ed1ed151a8d22b45bff54591e15b3f45ba59430 /src
parent79a0fbe146bccc625fc6fffe57464a418f54703c (diff)
downloadpandoc-9b38b69c947cae11948c9b363c223e27f34a4b25.tar.gz
Make --toc work in epub output.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/EPUB.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/EPUB.hs b/src/Text/Pandoc/Writers/EPUB.hs
index 33b8aa76a..c0cc815d4 100644
--- a/src/Text/Pandoc/Writers/EPUB.hs
+++ b/src/Text/Pandoc/Writers/EPUB.hs
@@ -276,6 +276,9 @@ pageTemplate = unlines
, "$endfor$"
, "$else$"
, "<h1>$title$</h1>"
+ , "$if(toc)$"
+ , "$toc$"
+ , "$endif$"
, "$body$"
, "$endif$"
, "</body>"