aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-03-03 08:42:45 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-03-03 08:42:45 -0800
commit76c5ebf14118a70debdb083d26d158f37be1a831 (patch)
treeb3dcc92b341ef16335e32b12c5e0feb64eba2440 /data
parent2a707b81715a2b4c78a424fa11f863f2ba7d861f (diff)
downloadpandoc-76c5ebf14118a70debdb083d26d158f37be1a831.tar.gz
EPUB writer: Include html TOC even in epub2.
* The TOC is included in `<spine>`, but `linear` is set to `no` unless the `--toc` option is specified. * Include `<guide>` element in OPF. * This should allow the TOC to be useable in Kindles when converted with kindlegen. * Results validate with epubcheck 3.0 for both epub and epub3 output. * Closes #773.
Diffstat (limited to 'data')
-rw-r--r--data/epub.css2
1 files changed, 2 insertions, 0 deletions
diff --git a/data/epub.css b/data/epub.css
index 3d9c59395..a87fff9bb 100644
--- a/data/epub.css
+++ b/data/epub.css
@@ -10,6 +10,8 @@ h6 { text-align: left; }
h1.title { }
h2.author { }
h3.date { }
+ol.toc { padding: 0; margin-left: 1em; }
+ol.toc li { list-style-type: none; margin: 0; padding: 0; }
/* For source-code highlighting */
table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode, table.sourceCode pre
{ margin: 0; padding: 0; border: 0; vertical-align: baseline; border: none; }