mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-26 17:35:49 +00:00
EPUB writer: Fixed bug with --epub-stylesheet.
Now the contents of `writerEpubStylesheet` (set by `--epub-stylesheet`) should again work, and take precedence over a stylesheet specified in the metadata.
This commit is contained in:
@@ -288,8 +288,7 @@ metadataFromMeta opts meta = EPUBMetadata{
|
||||
rights = metaValueToString <$> lookupMeta "rights" meta
|
||||
coverImage = lookup "epub-cover-image" (writerVariables opts) `mplus`
|
||||
(metaValueToString <$> lookupMeta "cover-image" meta)
|
||||
stylesheet = (StylesheetContents <$>
|
||||
lookup "epub-stylesheet" (writerVariables opts)) `mplus`
|
||||
stylesheet = (StylesheetContents <$> writerEpubStylesheet opts) `mplus`
|
||||
((StylesheetPath . metaValueToString) <$>
|
||||
lookupMeta "stylesheet" meta)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user