[Obsidian] Collapsing a section
Collapsible Callout in Obsidian
In Obsidian, you can collapse a section (without collapsing all sections) using a collapsible callout.
How to Create a Collapsible Callout
Use the following markdown:
> [!NOTE]- This is a collapsible callout.
> It stays collapsed by default until the reader clicks to expand it.
Important:
To make a callout collapsible, add a dash (-) after the [!type]
, as shown above.
Pasting Multiple Lines into a Callout
Problem
Currently, if you copy and paste multiple lines into a callout, only the first line appears inside the callout.
This happens because each line inside a callout must start with >
(the blockquote symbol).
Solution
Follow these steps to paste multiple lines into a callout properly:
- Paste your multiple lines inside the note.
- Select all the lines.
- Press
Command + P
, then search for and select “Toggle blockquote”.
🎉 Done! Now all lines will be inside the callout.