A collapsible section containing markdown
Click to expand!
Heading
- A numbered
- list
- With some
- Sub bullets
A collapsible section containing code
Click to expand!
function whatIsLove() {
console.log('Baby Don't hurt me. Don't hurt me');
return 'No more';
}
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>
special cases
thx
some oneliners
:
#!/bin/sh
curl https://www.mankier.com/api/v2/mans/?q="$1"
for using a collapse-able list-item:
item 1
item 2
zsh - easy (click to expand)
#!/bin/zsh local d="$(date +"%T-%m-%d-%y)" curl -sH "Accept: application/vnd.github.v3.star+json" "https://api.github.com/users/tg-z/starred" |\ jq '.' > ~/logs/$d.json
note the newlines and indents
example 4
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.