Back to FAQ

How to hide sections in markdown?

Learn how to hide or collapse sections in Markdown documents.

How to Hide Sections in Markdown

Standard Markdown doesn't support collapsible sections, but some platforms and extended Markdown processors support this feature.

HTML Details Tag

Use HTML details element (works in GitHub and some processors):

<details>
<summary>Click to expand</summary>

Hidden content here
</details>

Platform-Specific

  • GitHub: Supports HTML details tag
  • Obsidian: Supports callouts and collapsible sections
  • Notion: Has toggle lists for collapsible content