Hide sensitive or spoiler text in your notes using Discord-style ||text|| syntax.
Wrap any text with double pipes to mask it:
The secret code is ||1234-5678||
My API key is ||sk-abc123xyz||Masked text appears as a solid bar.
- Click to copy the hidden text to your clipboard
- Hold for 3 seconds to reveal the text (hides again on release)
- Inline syntax —
||your text here|| - Click to copy — quickly grab masked content without revealing it
- Long press to reveal — hold for 3 seconds to peek at the hidden text
- Reading mode — spoilers are always hidden
- Live preview — spoilers are masked, but raw syntax shows when your cursor is inside the range for easy editing
- Theme-aware — mask color adapts to your Obsidian theme
- Open Settings → Community Plugins → Browse
- Search for Obsidian Spoilers
- Click Install, then Enable
- Download
main.js,manifest.json, andstyles.cssfrom the latest release - Create a folder at
<your-vault>/.obsidian/plugins/obsidian-spoilers/ - Copy the three files into that folder
- Enable the plugin in Settings → Community Plugins