Toggle

pending

by jawoojo

A premium, Notion-style toggle plugin with enhanced styling and deep nesting support.

Updated 3mo agoMITDiscovered via Obsidian Unofficial Plugins
View on GitHub

Obsidian Toggle Plugin

A premium, Notion-style toggle plugin for Obsidian. The |> syntax is automatically rendered as a clickable triangle icon (▶), allowing you to fold and unfold content with a single click.

Features

  • Notion-Style Toggles: Use |> and <| to create toggle blocks.
  • Scoped Folding: Headers placed inside a toggle will fold content only within that toggle block. This keeps your document clean without breaking the global outline hierarchy.
  • Code Block Toggles: Use ```> syntax to make code blocks collapsible.
  • Copy: Hover over the title line to reveal a "Copy" button for quick sharing.
  • Native Integration: Built on top of Obsidian's core folding engine, ensuring native performance and compatibility.

Usage

Basic Toggle

|> Title
Content...
<|

Header Toggle

You can use a standard Markdown header as the title of your toggle. It functions exactly like a normal toggle but applies the header's styling (font size, weight, etc.) to the title line.

|> # My Styled Header
This content is folded inside the toggle.
The header creates a visual section but remains part of the toggle logic.
<|

Code Block Toggle

Add a > after the opening code fence to create a collapsible code block.

  • Syntax: \``> or ```javascript > `.
\`\`\`javascript >
console.log("Toggleable Code");
\`\`\`

Support

If you find this plugin helpful, consider buying me a coffee!

Buy Me A Coffee

License

MIT

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.