aboutsummaryrefslogtreecommitdiff
path: root/data/templates/default.epub3
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-08-28 12:34:49 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-08-28 12:35:28 -0700
commit7318bc91ce58bb6c39e556e334f278e590439c3f (patch)
tree72a0054c1168d22d9bf9e8e18c0d1ea1f74db4f8 /data/templates/default.epub3
parentdac85d683feb6f9f7e12b9273f353a1291171cd1 (diff)
downloadpandoc-7318bc91ce58bb6c39e556e334f278e590439c3f.tar.gz
EPUB writer: set epub:type on body element intelligently.
epub:type of first section epub:type of body -------------------------- ------------------ prologue frontmatter abstract frontmatter acknowledgments frontmatter copyright-page frontmatter dedication frontmatter foreword frontmatter halftitle, frontmatter introduction frontmatter preface frontmatter seriespage frontmatter titlepage frontmatter afterword backmatter appendix backmatter colophon backmatter conclusion backmatter epigraph backmatter Otherwise body will have epub:type 'bodymatter'. This only affects epub3. See http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10 Closes #4823.
Diffstat (limited to 'data/templates/default.epub3')
-rw-r--r--data/templates/default.epub32
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/default.epub3 b/data/templates/default.epub3
index b22714963..6428e984c 100644
--- a/data/templates/default.epub3
+++ b/data/templates/default.epub3
@@ -26,7 +26,7 @@ $for(header-includes)$
$header-includes$
$endfor$
</head>
-<body$if(coverpage)$ id="cover"$endif$>
+<body$if(coverpage)$ id="cover"$endif$$if(body-type)$ epub:type="$body-type$"$endif$>
$if(titlepage)$
<section epub:type="titlepage">
$for(title)$