GitHub

collapse-output is an extension for Quarto that folds code cell outputs into collapsible <details> elements in HTML documents.

Quarto folds source code with code-fold; this folds what the code produced.

Installation

quarto add mcanouil/quarto-collapse-output@1.5.2

This will install the extension under the _extensions subdirectory.

If you are using version control, you will want to check in this directory.

Documentation

The full documentation lives at https://m.canouil.dev/quarto-collapse-output/: every cell and document option, the two rendering methods, and folded output you can open.

example.qmd is a short, standalone starting point you can copy.

Licence

MIT.

Read the original on github.com ↗