cd /news/developer-tools/github-spoiler-markdown-md · home topics developer-tools article
[ARTICLE · art-10186] src=gist.github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

GitHub spoiler markdown.md

The article explains how to create a spoiler warning in Markdown using the HTML `<details>` and `<summary>` tags. It notes that a space is required after the summary tag and that any Markdown, including code blocks, can be placed inside the `<details>` tag as long as it is properly closed.

read1 min views15 publishedDec 13, 2017

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.

console.log("I'm a code block!");

</details>

── more in #developer-tools 4 stories · sorted by recency
── more on @github 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/github-spoiler-markd…] indexed:0 read:1min 2017-12-13 ·