Dropdowns in markdown.

I saw this tweet from Ali Spittel and it’s such a great tip for adding dropdowns in markdown on observable notebooks.

This is great for adding verbose fine grained detailed text to a notebook.

<details>
<summary>this text will show</summary>
this text will be hidden until you click the above text!
</details>

insta

4 Likes
Guess what: You can use this in the forum as well!

Of course, this is not markdown; it’s HTML, as detailed on MDN. It’s just a design decision of some markdown parsers to interpret a subset of HTML as well.

3 Likes