Closed gerstorfer closed 1 month ago
I'm guessing that what's happening here is that YAML strings in the defaults file are treated as plain strings, while those in the metadata file are treated as Markdown. That difference leads to issues somewhere along the way. I can take a look if there's something we can do.
Can you try with additional-packages
instead of header-includes
? I see that the filter treats those slightly differently, with the latter being more in line with what you need.
Yes, that works just fine!
I can set options for the filter in the yaml header of the file itself, in a metadata file but not in a defaults file. This is not a huge problem, I just wonder what goes wrong here.
This is not working:
test.md
default.yaml
and:
pandoc --lua-filter=diagram.lua test.md --defaults=./default.yaml -o test.pdf
Using the exact same settings in a metadata file works without problems:
metadata.yaml
and:
pandoc --lua-filter=diagram.lua test.md --metadata-file=./metadata.yaml -o test.pdf