-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve pre-post filter decomposition #4113
Comments
This would definitely help fill the gap with some R Markdown feature for custom formats. With R Markdown, one can define some pre / post hooks in
Everything is in R for those hooks. Obviously for Quarto it will be Lua. Some pre and post filter will definitely help ! So 👍 to this ! |
After discussing with Al, we're ok with doing this on 1.4. |
See also #2294. Let's consider how to allow after-citeproc filters as well (and where exactly to take citeproc processing since we can call it with |
Here's a quick example of where a post-rendering Lua filter would be helpful: https://github.com/andrewheiss/quarto-wordcount#how-this-all-works. The filter works now because of the format:
html:
filter:
post:
- '/path/to/wordcount.lua' |
@andrewheiss Just to be clear, we already have "post" filters, they're not just "post enough" for handling the output of citeproc! With that said, your use case is more than sufficient to convince me. (The quarto-wordcount filter is sweet!) |
Ha, |
Related to this again, it would be helpful to have control over the filter ordering here in order to do things like extract the |
This is now available on |
cc @dragonstyle
We want to do filters like this:
The inspiration is the sweet positioning of asciidoc.lua and that's how everything else should be in our filter chain.
The text was updated successfully, but these errors were encountered: