Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Spoiler

PatruusBarbaPatruusBarba253 downloads

Wrap selected text in a collapsible spoiler callout, or unwrap an existing spoiler, from a ribbon button.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

An Obsidian plugin that lets you hide and reveal sensitive text in your notes with a single click. Select some text, press the ribbon button, and the selection is wrapped in a collapsible spoiler callout. Press it again on a spoiler and it gets unwrapped back to plain text.

Demo of the spoiler plugin toggling a selection in Obsidian

Features

  • Adds a button to the left ribbon (near Open daily note).
  • Wraps the currently selected text in a collapsible spoiler callout.
  • Toggling: if the selection already is a spoiler, it is unwrapped back to plain text.

Spoiler format

The plugin wraps your selection in a collapsible spoiler callout, preserving any markdown inside it:

> [!spoiler]-
> super_secret_key

In reading view this renders as a collapsed callout; click it to reveal the contents.

Usage

  1. Open a note and select the text you want to hide.
  2. Click the spoiler button in the left ribbon.
  3. The selected text is replaced with a spoiler callout.
  4. To reveal it permanently, select the spoiler and click the button again to unwrap it.

Installation

From a release (recommended)

  1. Download main.js and manifest.json from the latest release.
  2. Put both files in your vault at <vault>/.obsidian/plugins/spoiler/.
  3. Reload Obsidian and enable Spoiler in Settings → Community plugins (you may need to turn off Restricted mode first).

Building from source

npm install
npm run build

This produces main.js. Copy it together with manifest.json into <vault>/.obsidian/plugins/spoiler/, then reload Obsidian and enable the plugin as above.

License

MIT

HealthExcellent
ReviewPassed
About
Hide and reveal sensitive text with a single click. Select text and click the left-ribbon Spoiler button to wrap it in a collapsible spoiler callout that preserves any Markdown. Click the button again on a spoiler to unwrap it back to plain text.
FormattingEditing
Details
Current version
0.2.2
Last updated
Last month
Created
Last month
Updates
3 releases
Downloads
253
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
PatruusBarbaPatruusBarbapatruusbarba
GitHubpatruusbarba
  1. Community
  2. Plugins
  3. Formatting
  4. Spoiler

Related plugins

Sort and Permute lines

Sort and Permute lines in whole file or selection.

List Callouts

Create simple callouts in lists.

Symbols Prettifier

Prettify the symbols with actual symbols you commonly type, like arrows.

Markdownlint

Use markdownlint to make the contents of your files more consistent.

Smart Typography

Convert quotes to curly quotes, dashes to em dashes, and periods to ellipses.

Paste Reformatter

Reformats pasted text for precise control.

Number Headings

Automatically number or re-number headings.

Advanced Tables

Improved table navigation, formatting, and manipulation.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Outliner

Work with your lists like in Workflowy or Roam Research.