Code folding option only works in chunck, not front matter #13653
Answered
by
JosephBARBIERDARNAL
JosephBARBIERDARNAL
asked this question in
Q&A
-
DescriptionIt appears that the ---
format: revealjs # same issue with `html`
execute:
echo: true
code-fold: true
code-summary: "Show code"
---
```{r}
#| echo: true
#| code-fold: true
#| code-summary: "Show code"
print("this works")
```
<br>
```{r}
print("this doesn't")
```
Perhaps I have misunderstood something, but I would expect the second block of code to be collapsed as well. |
Beta Was this translation helpful? Give feedback.
Answered by
JosephBARBIERDARNAL
Nov 6, 2025
Replies: 1 comment
-
|
EDIT: my fault, it shouldn't be in the ---
format:
revealjs:
code-fold: true
code-summary: "Show code"
execute:
echo: true
--- |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JosephBARBIERDARNAL
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

EDIT: my fault, it shouldn't be in the
executeoption, but rather: