Is Folding Static Code Blocks possible? #5329
-
I'm using quarto for my documentation and I have static code blocks (sql) in my documentation. Ideally I would like to fold those similarly to how code from executed code blocks can be done via option 'code-fold:true' I have not had any success 'folding' static code block that are not executed. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
See #5332 (comment). |
Beta Was this translation helpful? Give feedback.
-
You can use the html details tag to hide stuff, when writing in markdown. Like so: <details>
<summary>summary here</summary>
Whatever you want here. Code, diagrams, images, you name it.
</details> Which renders to (I didn't know github comments could render html, pretty cool): summary hereWhatever you want here. Code, diagrams, images, you name it. |
Beta Was this translation helpful? Give feedback.
You can use the html details tag to hide stuff, when writing in markdown.
Like so:
Which renders to (I didn't know github comments could render html, pretty cool):
summary here
Whatever you want here. Code, diagrams, images, you name it.