Skip to content

Instantly share code, notes, and snippets.

@7ranceaddic7
Last active July 19, 2020 21:58
Show Gist options
  • Save 7ranceaddic7/dee00c383432a29fbdb8c976ab843a8d to your computer and use it in GitHub Desktop.
Save 7ranceaddic7/dee00c383432a29fbdb8c976ab843a8d to your computer and use it in GitHub Desktop.
Gist created from visual studio extension

A collapsible section containing markdown

Click to expand!

Heading

  1. A numbered
  2. list
    • With some
    • Sub bullet

A collapsible section containing code

Click to expand!
  function whatIsLove() {
    console.log('Baby Don't hurt me. Don't hurt me');
    return 'No more';
  }

A collapsible section with pictures, too!

Click to expand!

XKCD1270

How to structure

# A collapsible section with markdown
<details>
  <summary>Click to expand!</summary>
  
  ## Heading
  1. A numbered
  2. list
     * With some
     * Sub bullets
</details>

NB: Make sure you have an empty line after the closing </summary> tag, otherwise the markdown/code blocks won't show correctly.

NB: Make sure you have an empty line after the closing </details> tag if you have multiple collapsible sections.

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