git.iko.soy/typeable/pandoc
on master help sign in
Fix document section assignments in EPUB writer.
b5af8eeJohn MacFarlane
MANUAL.txt+12−5
@@ -4944,17 +4944,24 @@ abstract frontmatter
4944acknowledgments frontmatter
4944acknowledgments frontmatter
4945copyright-page frontmatter
4945copyright-page frontmatter
4946dedication frontmatter
4946dedication frontmatter
4947+credits frontmatter
4948+keywords frontmatter
4949+imprint frontmatter
4950+contributors frontmatter
4951+other-credits frontmatter
4952+errata frontmatter
4953+revision-history frontmatter
4954+titlepage frontmatter
4955+halftitlepage frontmatter
4956+seriespage frontmatter
4947foreword frontmatter
4957foreword frontmatter
4948−halftitle, frontmatter
4949−introduction frontmatter
4950preface frontmatter
4958preface frontmatter
4951seriespage frontmatter
4959seriespage frontmatter
4952titlepage frontmatter
4960titlepage frontmatter
4953−afterword backmatter
4954appendix backmatter
4961appendix backmatter
4955colophon backmatter
4962colophon backmatter
4956−conclusion backmatter
4963+bibliography backmatter
4957−epigraph backmatter
4964+index backmatter
4958
4965
4959[epub-type]: http://www.idpf.org/epub/31/spec/epub-contentdocs.html#sec-epub-type-attribute
4966[epub-type]: http://www.idpf.org/epub/31/spec/epub-contentdocs.html#sec-epub-type-attribute
4960
4967
src/Text/Pandoc/Writers/EPUB.hs+7−4
@@ -584,11 +584,14 @@ pandocToEPUB version opts doc = do
584 _ -> (Pandoc nullMeta bs, "bodymatter")
584 _ -> (Pandoc nullMeta bs, "bodymatter")
585 frontMatterTypes = ["prologue", "abstract", "acknowledgments",
585 frontMatterTypes = ["prologue", "abstract", "acknowledgments",
586 "copyright-page", "dedication",
586 "copyright-page", "dedication",
587+ "credits", "keywords", "imprint",
588+ "contributors", "other-credits",
589+ "errata", "revision-history",
590+ "titlepage", "halftitlepage", "seriespage",
587− "foreword", "halftitle",
591+ "foreword", "preface",
588− "introduction", "preface",
589 "seriespage", "titlepage"]
592 "seriespage", "titlepage"]
590− backMatterTypes = ["afterword", "appendix", "colophon",
593+ backMatterTypes = ["appendix", "colophon", "bibliography",
591− "conclusion", "epigraph"]
594+ "index"]
592
595
593 chapterEntries <- zipWithM chapToEntry [1..] chapters
596 chapterEntries <- zipWithM chapToEntry [1..] chapters
594
597