From 45db998b397b7d8b38bf28d73f4e6455be420ea4 Mon Sep 17 00:00:00 2001 From: John MacFarlane <jgm@berkeley.edu> Date: Wed, 29 Sep 2021 08:29:14 -0700 Subject: [PATCH] EPUB writer: treat epub:type "frontispiece" as front matter. This allows you to include a frontispiece using ```  etc. ``` Closes #7600. --- MANUAL.txt | 1 + src/Text/Pandoc/Writers/EPUB.hs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/MANUAL.txt b/MANUAL.txt index 7793b509c..54eb96467 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -6278,6 +6278,7 @@ halftitlepage frontmatter seriespage frontmatter foreword frontmatter preface frontmatter +frontispiece frontmatter appendix backmatter colophon backmatter bibliography backmatter diff --git a/src/Text/Pandoc/Writers/EPUB.hs b/src/Text/Pandoc/Writers/EPUB.hs index d77a038ba..86a7646e6 100644 --- a/src/Text/Pandoc/Writers/EPUB.hs +++ b/src/Text/Pandoc/Writers/EPUB.hs @@ -659,7 +659,7 @@ pandocToEPUB version opts doc = do "contributors", "other-credits", "errata", "revision-history", "titlepage", "halftitlepage", "seriespage", - "foreword", "preface", + "foreword", "preface", "frontispiece", "seriespage", "titlepage"] backMatterTypes = ["appendix", "colophon", "bibliography", "index"]