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.
@KishanMistri Well done! I am afraid, this is not what I expected, i.e., a broken assert. :-P
In this case, I suppose there are multiple interpretations:
You gave us 2. I meant 1. Both are great regardless.