Have a look at this spoiler.
Spoiler text. Note that it's important to have a line break after the <summary> element, then you can add Markdown into the spoiler. Make sure to close it up with </details> afterwards.
// code-block.js
console.log("I'm a code block!");Do you see something different from what HTML actually can do? Yes, that's right, I'm quite sure you understand this is a spoiler made with Markdown.
To fully understand, copy the placeholder code above into a Markdown file.