How to make collapsible code?

Things I have tried

What I’m trying to do

I’m trying to have collapsible code blocks. But:

// code block surrounded by triple back-ticks

does not work

From looking at this thread: Folding in preview - #128

it seems like code blocks don’t work inside collapsible sections. Is there a good workaround?


You do not consider use the option “Fold heading” or “Fold indent” instead of html code?

Obsidian > Settings > Editor


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.