diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2014-11-16 20:58:17 -0800 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2014-11-16 20:58:17 -0800 |
| commit | 63443da4501728332a6624a1d1b769ef9183436b (patch) | |
| tree | 2d7e2f3d0e802c5fc2df5ff0d74ea9bed30e9723 | |
| parent | ec057f0ad3d191d18a2842e6a2fd41c471c6d97d (diff) | |
| download | pandoc-63443da4501728332a6624a1d1b769ef9183436b.tar.gz | |
epub, epub3: Added id="cover" to body of titlepage.
Closes jgm/pandoc#1758.
| -rw-r--r-- | default.epub | 5 | ||||
| -rw-r--r-- | default.epub3 | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/default.epub b/default.epub index 0ac58248f..f2e042830 100644 --- a/default.epub +++ b/default.epub @@ -15,8 +15,8 @@ $for(css)$ <link rel="stylesheet" type="text/css" href="$css$" /> $endfor$ </head> -<body> $if(titlepage)$ +<body id="cover"> $for(title)$ $if(title.text)$ <h1 class="$title.type$">$title.text$</h1> @@ -42,8 +42,11 @@ $endif$ $if(rights)$ <p class="rights">$rights$</p> $endif$ +</body> $else$ +<body> $body$ +</body> $endif$ </body> </html> diff --git a/default.epub3 b/default.epub3 index 5e983a21a..6dce74a3a 100644 --- a/default.epub3 +++ b/default.epub3 @@ -19,8 +19,8 @@ $for(css)$ <link rel="stylesheet" type="text/css" href="$css$" /> $endfor$ </head> -<body> $if(titlepage)$ +<body id="cover"> <section epub:type="titlepage"> $for(title)$ $if(title.type)$ @@ -48,9 +48,11 @@ $if(rights)$ <p class="rights">$rights$</p> $endif$ </section> +</body> $else$ +<body> $body$ -$endif$ </body> +$endif$ </html> |
