4 ms·
It's done via embedded HTML, which GitHub flavored markdown supports. I didn't know about the HTML details element, though. Pretty handy! <details> <
by christophilus 8y ago
It's done via embedded HTML, which GitHub flavored markdown supports. I didn't know about the HTML details element, though. Pretty handy!
<details>
<summary>Click to expand</summary>
<div>Hidden until expanded, no JS or CSS required!</div>
</details>
- masklinn 8y agoIt also works in issue/PR descriptions and comments. As far as I'm concerned that's where it's most convenient as it lets you e.g. post big screenshots or graphical rendering of profiles (flamegraphs) without taking up screenfuls of space and bothering everybody.
- Hixie 8y agoIf it makes you feel better, I _invented_ `<details>` and didn't realize you could do that in markdown...