Skip to content

Instantly share code, notes, and snippets.

@bradparks
Forked from ericclemmons/example.md
Created May 19, 2020 11:55
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 bradparks/7bf81c90a077f4c602936f7ac6350339 to your computer and use it in GitHub Desktop.
Save bradparks/7bf81c90a077f4c602936f7ac6350339 to your computer and use it in GitHub Desktop.
HTML5 <details> in GitHub

Using <details> in GitHub

Suppose you're opening an issue and there's a lot noisey logs that may be useful.

Rather than wrecking readability, wrap it in a <details> tag!

<details>
 <summary>Summary Goes Here</summary>
 ...this is hidden, collapsable content...
</details>

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

A collapsible section with markdown

Click to expand!
def func():
    return 'hello, world!'

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