Skip to content

Instantly share code, notes, and snippets.

@aaemnnosttv
Forked from ericclemmons/example.md
Last active September 28, 2019 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaemnnosttv/929ee726d57134700284d25985b08d09 to your computer and use it in GitHub Desktop.
Save aaemnnosttv/929ee726d57134700284d25985b08d09 to your computer and use it in GitHub Desktop.
HTML5 <details> in GitHub

Using <details> in GitHub

Suppose you're opening an issue, pull request, or just leaving a comment and you have a lot of supporting content to provide, such as:

  • Log excerpts
  • Code snippets
  • Large screenshots
  • Any other form of content spanning a large vertical space

To optimize readability, wrap it in a <details> tag!

<details>
 <summary>Section Title</summary>
 ...collapsible content...
</details>

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details

A collapsible section with markdown

Click to expand!

oh yeah

Nested

root
bin
nest1
a
b
c
nest2

a b c

file1
file2
file3
boot

x y z

dev

p q r

etc

e t c

home

me you everyone

lib

lib er ate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment