Skip to content

Repository files navigation

Collapse Output Extension For Quarto

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.6.0

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.

About

A Quarto extension that provides the ability to collapse code cell outputs in HTML documents using collapsible `<details>` elements.

Topics

Resources

Stars

21 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Contributors

Languages