Note that GitHub and Pandoc have different behaviors.
- Unchecked
- Checked
In this Gist, clicking checkboxes create new commits, e.g. this one.
The HTML5 details element is rendered as collapsable content on GitHub.
The following content
<details>
<summary>Summary, always visible</summary>
...
Some content, initially hidden.
...
</details>
is rendered as follow:
Summary, always visible
... Some content, initially hidden. ...It can be made open by default, with the open
attribute:
Summary, always visible
... Some content, initially visible. ...It is also possible to nest such collapsed content using the blockquote
element to group children:
etc
nixos
configuration.nix hardware-configuration.nix
Note: it seems better to leave a blank line after or before the blockquote
tags.