Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 774 Bytes

File metadata and controls

52 lines (38 loc) · 774 Bytes

Markdown / Github Flavored Markdown

Collapsable Markdown Sections

Here is a quick snippet to make collapsible sections in Github Flavoured Markdown.

Code:

<details>
  <summary>
    This is content that is only shown when collapsed.
  </summary>
  <p>This is content when this element is expanded.</p>
</details>

Preview:

This is content that is only shown when collapsed.

This is content when this element is expanded.

Snappy Tables of Contents

Code:

---
<details>
<summary><b>Table of Contents</b></summary>
<!--TOC-->
<!--TOC-->
</details>

----

Preview:


Table of Contents