quarto-dev / quarto-dev/quarto-cli
pre- and post-render scripts for single-file renders
Open
@cscheid is already working on this.
Since Jul 3, 2025.
enhancement
project-scripts
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
We should support these somehow.
We need to decide where the configuration goes. pre-render scripts are project scripts and project configuration goes on _quarto.yml. Internally, we made it to that single-file renders have an ephemeral project associated with them, but this project has no configuration object.
We would have to allow project configuration to be specified in the .qmd file, but then YAML validation becomes tricky - .qmd files in regular projects would need to be validated differently from individual .qmd files.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.