diff options
author | John MacFarlane <jgm@berkeley.edu> | 2013-11-30 15:25:28 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2013-11-30 15:25:28 -0800 |
commit | 17ef39d1577a7c844f8747294f0e7a0486c1edaa (patch) | |
tree | 04a7c7dc6bd89c3f3c9af90d689e0c4dafc7e484 /src/Text | |
parent | 96b678d823b544e3da7dd8531615c52de6164cb8 (diff) | |
download | pandoc-17ef39d1577a7c844f8747294f0e7a0486c1edaa.tar.gz |
Fixed `cover-image` in EPUB YAML metadata.
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Writers/EPUB.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/EPUB.hs b/src/Text/Pandoc/Writers/EPUB.hs index a3b01848e..9745db5a0 100644 --- a/src/Text/Pandoc/Writers/EPUB.hs +++ b/src/Text/Pandoc/Writers/EPUB.hs @@ -279,7 +279,8 @@ metadataFromMeta opts meta = EPUBMetadata{ relation = metaValueToString <$> lookupMeta "relation" meta coverage = metaValueToString <$> lookupMeta "coverage" meta rights = metaValueToString <$> lookupMeta "rights" meta - coverImage = lookup "epub-cover-image" (writerVariables opts) + coverImage = lookup "epub-cover-image" (writerVariables opts) `mplus` + (metaValueToString <$> lookupMeta "cover-image" meta) -- | Produce an EPUB file from a Pandoc document. writeEPUB :: WriterOptions -- ^ Writer options |