How to
<details>
<summary>Click me</summary>
### Heading
1. Foo
2. Bar
* Baz
* Qux
### Some Code
```js
function logSomething(something) {
console.log('Something', something);
}
```
</details>
Example
Click me
Heading
- Foo
- Bar
- Baz
- Qux
Some Code
function logSomething(something) {
console.log('Something', something);
}
Rules
- Have an empty line after the
</summary>
tag or markdown/code blocks will not render. - Have an empty line after each
</details>
tag if you have multiple collapsible sections.
You can also use markdown inside the HTML.
https://gist.github.com/scmx/eca72d44afee0113ceb0349dd54a84a2
I'm trying to find a tool that converts nested lists in markdown to HTML details and blockquotes.