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

Context Block

Junyoung BangJunyoung Bang1 downloads

Compact context blocks for supplementary information in Markdown notes.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates2

Supporting details, without interrupting your notes.

Turn supplementary information into compact, title-free blocks in Obsidian. Keep your links, lists and code, with less space around them.

Context Block in Obsidian: a compact explanation, formatted Markdown with YAML code, and the same sentence in a standard Note callout and a smaller context block.

Actual Obsidian rendering · Default settings · Light and dark themes
Light preview · Dark preview

Compact by default Native Markdown Your theme
Equal padding and text at 90% of the note size. Links, lists and code in Reading view and Live Preview. Colors follow Obsidian, with adjustable background and border strength.

Write a context block

> [!context]
> Linux Namespace와는 다른 수준의 개념임을 명시하자.

Use the existing callout syntax. The plugin handles the compact appearance; your note stays plain Markdown.

Commands

  • Context Block: Wrap selection wraps the selected paragraphs. A partial paragraph selection expands to the full paragraph. With no selection, it wraps the current paragraph; on an empty line it inserts an empty block.
  • Context Block: Unwrap current block unwraps the block containing the cursor. The selection must stay inside one block. Nested quotes remain intact.

Both commands use one editor transaction and support Undo/Redo. Assign shortcuts under Settings → Hotkeys.

Wrapping rejects existing blockquotes, frontmatter, fenced code and indented code. Use a plain > [!context] header for blocks you want to unwrap with the command. Source mode retains normal Markdown syntax.

Appearance

Under Settings → Context Block, configure:

Setting Default Range
Text size 90% of note text 75–100%
Padding 10px on all sides 4–24px
Background strength 4% 0–12%
Border strength 12% 0–30%

Colors follow the active theme. Changes apply immediately and persist across restarts. Reset to defaults restores the appearance. Other callout types keep their existing styles.

Disabling the plugin leaves valid callout Markdown in the note. Obsidian then renders it as a regular callout.

Local installation

Requires Obsidian 1.8.9 or newer.

  1. Run npm install and npm run build.
  2. Create <Vault>/.obsidian/plugins/context-block/.
  3. Copy main.js, manifest.json, and styles.css into that folder.
  4. Reload Obsidian and enable Context Block under Settings → Community plugins.

Development

  • npm run dev: watch and rebuild.
  • npm run build: type check and production bundle.
  • npm run lint: lint.
  • npm test: document transformation regression tests.

No network requests, telemetry or external services are used by the plugin. The implementation uses browser-compatible APIs; actual iOS/Android device testing has not been performed.

Based on the official Obsidian sample plugin.

HealthExcellent
ReviewSatisfactory
About
Create compact context blocks that render as title-free, evenly padded callouts in Live Preview and Reading view. Wrap or unwrap paragraphs with editor commands; blocks use a slightly smaller font, support links, emphasis, lists and inline code, preserve nested quotes and avoid wrapping blockquotes, frontmatter, fenced or indented code.
FormattingAppearance
Details
Current version
1.1.0
Last updated
8 hours ago
Created
13 hours ago
Updates
2 releases
Downloads
1
Compatible with
Obsidian 1.8.9+
Platforms
Desktop, Mobile
License
0BSD
Report bugRequest featureReport plugin
Sponsor
Buy Me a Coffee
Author
Junyoung BangJunyoung Bangzzunebye
github.com/zzunebye
GitHubzzunebye
zzunebye
  1. Community
  2. Plugins
  3. Formatting
  4. Context Block

Related plugins

Better Bullets

Improves readability of bulleted notes.

Heading Level Indent

Indenting content under headers based on their level.

Minimal Theme Settings

Control the colors and fonts in Minimal Theme.

Admonition

Admonition block-styled content.

Hider

Hide interface elements such as tooltips, status bar, titlebar, and more.

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.

Supercharged Links

Add attributes to internal links with the values of target note's frontmatter attributes.

Editing Toolbar

The Editing Toolbar is modified from cMenu, which provides more powerful customization settings and has many built-in editing commands to be a MS Word-like toolbar editing experience.

Note Toolbar

Add customizable toolbars to your notes.

Style Settings

Adjust theme, plugin, and snippet CSS variables.