-
DescriptionI am writing a quarto extension that makes use of some extension specific yaml list keys. It would be great to have the possibility to define parts of the list in the project Here is a mwe:
Ykeys:
A: "aha" document ---
Ykeys:
B: "better"
filters: [ykeysout.lua]
---
## How are yamls merged?
Let us see in this document. filter
Rendering this document in quarto 1.7.33, both entries A and B are shown in the output, but only B is visible to the filter:
The only trick I could come up with is to use different key names for project, directory and document yaml, but I hope there is a better solution 😄 p.s. if the key is not set in the document, but only in the project yaml, the merging works as expected and the filter outputs the value from the project yaml. Also, if a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
For reference, documentation on metadata is there: This being said, Last time I checked level project metadata are not exposed to Lua and there was issues:
Without writing a Lua filter, you can have an idea of what is accessible using the meta shortcode: |
Beta Was this translation helpful? Give feedback.
Current behaviour is document overrides completely
Ykeys
from project.From the documentation "Document options (overrides directory and project)".
If you want to merge, you need to use
_metadata.yml
next to your document.