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>
Ohhh, my bad - I mis-read your post. I don't think GFM has a proper spoiler tag. Would be great if somebody smarter than me created an Ultimate Markdown that takes all the markdowns out there and starts as a script that lets you define your own markdown - the options you want, the way it behaves, and the syntax to trigger it. Like, if you wanted a spoiler that renders like Reddit's but triggers with Discord's syntax, you'd be able to.