git.iko.soy/typeable/pandoc
on master help sign in
MANUAL.txt epub:type attribute (#4901)
commit2bd5ba234257dc682470ad183ff0c2efb387e061 authorMauro Bieg <mb21@users.noreply.github.com> dateFri 14 Sep 2018, 19:06 (8 years ago) parentfd10714
1 file changed+40
MANUAL.txt+40
MANUAL.txt+40
@@ -4611,6 +4611,46 @@ The following fields are recognized:
46114611[MARC relators]: http://loc.gov/marc/relators/relaterm.html
46124612[`spine` element]: http://idpf.org/epub/301/spec/epub-publications.html#sec-spine-elem
46134613
4614+The `epub:type` attribute
4615+-------------------------
4616+
4617+You can mark up the header that corresponds to an EPUB chapter using the
4618+[`epub:type` attribute][epub-type]. For example, to set the attribute
4619+to the value `prologue`, use this markdown:
4620+
4621+ # My chapter {epub:type=prologue}
4622+
4623+Which will result in:
4624+
4625+ <body epub:type="frontmatter">
4626+ <section epub:type="prologue">
4627+ <h1>My chapter</h1>
4628+
4629+Pandoc will output `<body epub:type="bodymatter">`, unless
4630+you use one of the following values, in which case either
4631+`frontmatter` or `backmatter` will be output.
4632+
4633+`epub:type` of first section `epub:type` of body
4634+---------------------------- ------------------
4635+prologue frontmatter
4636+abstract frontmatter
4637+acknowledgments frontmatter
4638+copyright-page frontmatter
4639+dedication frontmatter
4640+foreword frontmatter
4641+halftitle, frontmatter
4642+introduction frontmatter
4643+preface frontmatter
4644+seriespage frontmatter
4645+titlepage frontmatter
4646+afterword backmatter
4647+appendix backmatter
4648+colophon backmatter
4649+conclusion backmatter
4650+epigraph backmatter
4651+
4652+[epub-type]: http://www.idpf.org/epub/31/spec/epub-contentdocs.html#sec-epub-type-attribute
4653+
46144654Linked media
46154655------------
46164656