Skip to content

Instantly share code, notes, and snippets.

@rheaditi
Last active July 31, 2019 18:02
Show Gist options
  • Save rheaditi/4494ccf4baa96150a06519e932f625d7 to your computer and use it in GitHub Desktop.
Save rheaditi/4494ccf4baa96150a06519e932f625d7 to your computer and use it in GitHub Desktop.
Markdown things

Cheatsheet

@adam-p has a great CheatSheet here

Collapsible content

keywords: collapse, collapsible, markdown, closed header

Use <details /> and <summary /> HTML elements.

Example:

<details>
  <summary>This is the header!</summary>

  I can put extra stuff here!
</details>

In action:

This is the header!

I can put extra stuff here!

Adding code blocks to summary

Example:

<details>
  <summary>Add some <code>inline code stuff</code> here</summary>
  Anything else ?
  <p>Even more HTML</p>
</details>

In action:

Add some inline code stuff here Anything else ?

Even more HTML

Reference style links

[A reference link][reference]

[reference]: https://actual-link.example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment