aboutsummaryrefslogtreecommitdiff
path: root/MANUAL.txt
diff options
context:
space:
mode:
authorMauro Bieg <mb21@users.noreply.github.com>2018-09-14 19:06:49 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2018-09-14 10:06:49 -0700
commit2bd5ba234257dc682470ad183ff0c2efb387e061 (patch)
tree27e6ef553e4ab674589d6f9b0d786e20a31a0ddf /MANUAL.txt
parentfd107145e61b8f8dd98177f2a80141a636970ed4 (diff)
downloadpandoc-2bd5ba234257dc682470ad183ff0c2efb387e061.tar.gz
MANUAL.txt epub:type attribute (#4901)
Diffstat (limited to 'MANUAL.txt')
-rw-r--r--MANUAL.txt40
1 files changed, 40 insertions, 0 deletions
diff --git a/MANUAL.txt b/MANUAL.txt
index 7fa7cdcab..b4033a5e3 100644
--- a/MANUAL.txt
+++ b/MANUAL.txt
@@ -4611,6 +4611,46 @@ The following fields are recognized:
[MARC relators]: http://loc.gov/marc/relators/relaterm.html
[`spine` element]: http://idpf.org/epub/301/spec/epub-publications.html#sec-spine-elem
+The `epub:type` attribute
+-------------------------
+
+You can mark up the header that corresponds to an EPUB chapter using the
+[`epub:type` attribute][epub-type]. For example, to set the attribute
+to the value `prologue`, use this markdown:
+
+ # My chapter {epub:type=prologue}
+
+Which will result in:
+
+ <body epub:type="frontmatter">
+ <section epub:type="prologue">
+ <h1>My chapter</h1>
+
+Pandoc will output `<body epub:type="bodymatter">`, unless
+you use one of the following values, in which case either
+`frontmatter` or `backmatter` will be output.
+
+`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
+
+[epub-type]: http://www.idpf.org/epub/31/spec/epub-contentdocs.html#sec-epub-type-attribute
+
Linked media
------------