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 logSometing(something) {
console.log(`Logging: ${something}`);
}
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>
Two important rules:
- Make sure you have an empty line after the closing
</summary>
tag, otherwise the markdown/code blocks won't show correctly. - Make sure you have an empty line after the closing
</details>
tag if you have multiple collapsible sections.