code-fold html code blocks #12907
Closed
JosiahParry
started this conversation in
Feature Requests
Replies: 2 comments 3 replies
-
Why do you change the language? ---
format: html
engine: knitr
---
```{bash}
#| eval: false
#| code-fold: true
#| code-summary: Show solution
cargo new intro-to-rust
``` |
Beta Was this translation helpful? Give feedback.
3 replies
-
Note that there is an issue already opened: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
From what I can tell, it is not possible to provide code folding for generic code chunks in quarto. Only code that is actually evaluated / is defined with a language chunk like so
{r}
or{python}
can actually be folded.Ideally I'd like to be able to have something like so:
It creates the following:

A work around is to write
but then you lose syntax highlighting
Beta Was this translation helpful? Give feedback.
All reactions