Is it possible to distribute python filters? #12084
Replies: 3 comments 5 replies
|
Did you look at Pandoc filters documentation? https://pandoc.org/filters.html Quarto extension is an additional layer which might not support everything. filters:
- my-filter.py |
Yes I have read the I think |
|
From my experiments, it seems that Python filters do not currently work through the YAML frontmatter. My guess is that it's just an oversight in the Quarto source code, as Pandoc python filters do exist… |
Uh oh!
There was an error while loading. Please reload this page.
Description
Hi!
I could probably test this quickly but I think it is a worthwhile discussion. I looked and I didn't see any discussion about this directly so I decided I'd ask.
Is it possible to distribute filters in a language other than
lua.Of course, I assume adding additional dependencies might require more work out of the user (in my case
s3cmdandpanflutewould be required bypython) and it should not be a featurequartoto handle the deps. However, it would be good enough to specify the deps in a file included by the extension (e.g. just includerequirements.txtwith the extension, in the case ofpython).I see in distributing a
luafile is not necessarily required so I am wondering if I could do something likefor a
pythonfilter.All reactions