Spoiler warning
Spoiler text. Note that it's important to have a space after the summary tag. You should be able to write any markdown you want inside the <details> tag... just make sure you close <details> afterward.
console.log("I'm a code block!");<details>
<summary>Spoiler warning</summary>
Spoiler text. Note that it's important to have a space after the summary tag. You should be able to write any markdown you want inside the `<details>` tag... just make sure you close `<details>` afterward.
```javascript
console.log("I'm a code block!");
```
</details>
If you combine the spoiler tag with quoting, then when expanded the vertical quote bar makes it is easier to see what can be collapsed
renders like
blah blah after the collapsable section