Markdown Toolbox Logo Markdown Toolbox
Home
Blog

Markdown Toolbox - Easily convert Markdown to other formats | Product Hunt

Can I create collapsible sections in markdown?

Wednesday, November 29, 2023

Creating collapsible sections in Markdown is not supported by standard Markdown syntax. However, if your Markdown processor supports HTML, you can use HTML details and summary tags.

<details>
<summary>Click to expand</summary>
This is a collapsible section.
</details>
Click to expandThis is a collapsible section.