This website requires JavaScript.
Explore
Help
Sign in
Tissevert
/
pandoc
Watch
1
Star
0
Fork
You've already forked pandoc
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
Actions
1
89c577befb
pandoc
/
test
/
command
/
5700-metadata-file-2.yml
3 lines
80 B
YAML
Raw
Normal View
History
Unescape
Escape
`--metadata-file`: when multiple files specified, second takes precedence... on conflicting fields. This changes earlier behavior (but not in a release), where first took precedence. Note that this may seem inconsistent with the behavior of multiple YAML blocks within a document, where the first takes precedence. Still, it is convenient to be able to override defaults with options later on the command line.
2019-10-10 19:00:45 +02:00
title
:
Multiple metadata files test
Change optMetadataFile type from Maybe to List (#5702) Changed optMetadataFile from `Maybe FilePath` to `[FilePath]`. This allows for multiple YAML metadata files to be added. The new default value has been changed from `Nothing` to `[]`. To account for this change in `Text.Pandoc.App`, `metaDataFromFile` now operates on two `mapM` calls (for `readFileLazy` and `yamlToMeta`) and a fold. Added a test (command/5700.md) which tests this functionality and updated MANUAL.txt, as per the contributing guidelines. With the current behavior, using `foldr1 (<>)`, values within files specified first will be used over those in later files. (If the reverse of this behavior would be preferred, it should be fixed by changing foldr1 to foldl1.)
2019-08-24 18:41:25 +02:00
desc
:
Both of these files should be loaded.
Reference in a new issue
Copy permalink