Closed gregoryg closed 3 days ago
--epub-metadata
takes a special kind of XML file, not a YAML file.
If you want to use YAML metadata this way, you can use --metadata-file
.
From the docs:
--epub-metadata=FILE
Look in the specified XML file for metadata for the EPUB. The file should contain a series of Dublin Core elements. For example:
<dc:rights>Creative Commons</dc:rights>
<dc:language>es-AR</dc:language>
OS and Pandoc version
Pandoc
OS
Problem
Pandoc conversion from either Markdown or Org Mode to EPUB fails when using a YAML metadata file containing an ampersand in the title, even when the title value is quoted.
I have not found this error in open/closed issues or PRs or discussed on the wiki
Files used
simple.org
simple.md
metadata.yaml
commands run to reproduce
Pandoc error in both cases