The Wiki introduces how to control the caption of code fodling with the `fold` chunk option.
However, I think the caption should be tweaked by different chunk option, and the `fold` chunk option rather control if fold is initially open or closed (e.g., `fold="open"`, `fold="closed"`).

Of course we can keep the current implementation and have another chunk option to specify the initial state.

https://github.com/quarto-dev/quarto-cli/wiki/Rendering-Rmds#code-folding
2021-02-07T12:10:35Z
atusy
closed
On controlling code folding's initial state
https://github.com/quarto-dev/quarto-cli/issues/19