Skip to content

Instantly share code, notes, and snippets.

View aykononov's full-sized avatar

Aleksandr Kononov aykononov

  • Russia, Saint Petersburg
  • 21:09 (UTC +03:00)
View GitHub Profile
@aykononov
aykononov / markdown-details-collapsible.md
Created May 5, 2022 19:37 — forked from pierrejoubert73/markdown-details-collapsible.md
How to add a collapsible section in markdown.

A collapsible section containing markdown

Click to expand!

Heading

  1. A numbered
  2. list
    • With some
    • Sub bullets
@scmx
scmx / using-details-summary-github.md
Last active June 24, 2024 16:56
Using <details> <summary> expandable content on GitHub with Markdown #details #summary #markdown #gfm #html

How to use <details> <summary> expandable content on GitHub with Markdown

Firstly, what is <details> <summary>?

The HTML Details Element (<details>) creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state. A summary or label can be provided using the <summary> element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details.

Example