1/ Writer
Using --to=sample.lua works when --standalone is not present and .
Otherwise I have this error: Could not find data file templates/default.sample.lua
Using --writer=sample.lua does not work.
Error: "Unknown option --writer."
I now know why using "--to" did not work.
2/ Accessing variables in lua filter
I would like to have access to "variables" in lua filter.
Currently I have access to "metadata" when I use "function Pandoc(doc) ... end"
In the doc: https://pandoc.org/custom-writers.html#a-custom-html-writer, I saw this "function Doc(body, meta, vars) ... end" but it's never called in my tests.
I prefer not to use "function Writer" for now if possible.
Do you have any tips or working examples for that one?
Thanks