Disclaimer
Is this project open source? Yes
Is this project completely free? Yes
Is this project vibe-coded beyond the author’s ability to comprehend how it works? No
Community Directory: Spoiler - Obsidian Plugin
Spoiler — hide & reveal text with one click
Hi everyone,
I built a small plugin called Spoiler.
There are already spoiler plugins out there, but they don’t work with code blocks. And Obsidian already has the [!spoiler] callout, but there’s no quick way to create one — checkboxes get a hotkey and a command palette entry, spoilers don’t.
So I made one. Select text, click the ribbon button, done — your selection is wrapped in a collapsible spoiler callout. To unwrap, select the spoiler text and click the button again.
It preserves whatever markdown is inside, including code blocks.

The format it produces:
> [!spoiler]-
> your hidden text here
It’s my first plugin, so feedback is welcome.