diff options
author | John MacFarlane <jgm@berkeley.edu> | 2011-02-06 08:59:51 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2011-02-06 08:59:51 -0800 |
commit | 9b38b69c947cae11948c9b363c223e27f34a4b25 (patch) | |
tree | 8ed1ed151a8d22b45bff54591e15b3f45ba59430 /src | |
parent | 79a0fbe146bccc625fc6fffe57464a418f54703c (diff) | |
download | pandoc-9b38b69c947cae11948c9b363c223e27f34a4b25.tar.gz |
Make --toc work in epub output.
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Writers/EPUB.hs | 3 |
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>" |