Closed gorootde closed 4 months ago
Yeah, we can do some better object merging here.
Actually, if you use the |
notation you'll include frontmatter verbatim as a string. If you pass it in as a YAML object you may get better results. You will have to make sure it's valid YAML though and therefore put quotes around directives, eg "{{something}}"
I tried that as well. Deep merging does also not work when using a yaml object
The (https://silverbullet.md/Snippets#Frontmatter)[Snippets Documentation] states that if a frontmatter is already present, it will be combined with the one already present in the document.
This doesn't work for sub-keys and already existing keys.
Minimal Example:
snippet.md
page.md
page.md
will only containsomeAlias
after applying the snippet topage.md
, whereas it should containfoobar
additionally.