aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-09-29 08:29:14 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-09-29 08:29:14 -0700
commit45db998b397b7d8b38bf28d73f4e6455be420ea4 (patch)
treec3124a29bbf1d87a8ae43b46b0ed75b63fd0e46e
parent92abe458638d9824725ef8c70eb3613f5cc89217 (diff)
downloadpandoc-45db998b397b7d8b38bf28d73f4e6455be420ea4.tar.gz
EPUB writer: treat epub:type "frontispiece" as front matter.
This allows you to include a frontispiece using ``` ![](yourimage.jpg) etc. ``` Closes #7600.
-rw-r--r--MANUAL.txt1
-rw-r--r--src/Text/Pandoc/Writers/EPUB.hs2
2 files changed, 2 insertions, 1 deletions
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"]