The regurgitate Quarto extension collects code blocks and their execution results, placing them in a "Code Appendix" at the end of your document.
To install the regurgitate Quarto extension, follow these steps:
- Open your terminal.
- Execute the following command:
quarto add coatless-quarto/regurgitateThis command will download and install the Quarto extension under the _extensions subdirectory of your Quarto project. If you are using version control, ensure that you include this directory in your repository.
Add the regurgitate filter to your document's YAML front matter:
---
title: "My Document"
filters:
- regurgitate
---That's it! All code blocks will now appear in an appendix at the end.
Three independent options control behavior:
extensions:
regurgitate:
group-by-language: false # Group by programming language
show-code-inline: true # Show code in original positions
show-output-results: true # Include execution results in appendixgroup-by-language(default:false)false: Appendix code in document ordertrue: Appendix grouped by language (Python, R, etc.)
show-code-inline(default:true)true: Code appears both inline and in appendixfalse: Code only in appendix (removed from inline)
show-output-results(default:true)true: Include execution output in appendixfalse: Only code in appendix (no output)