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

Indent

Jan SandströmJan Sandström1k downloads

Disable indented code blocks so tabs/spaces become normal indentation.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates6

Disable indented code blocks so tabs/spaces become normal indentation in Live Preview.

How it works

Obsidian’s Markdown parser turns any line that starts with 4+ spaces or a tab into an indented code block. Instead of modifying the parser, this plugin rewrites the start of affected lines on edit:

  • When a line begins with a tab or 4+ spaces, the plugin prefixes the indentation with a zero‑width non‑joiner (ZWNJ, U+200C).
  • That invisible character breaks the “indented code block” rule, but keeps the indentation visible.
  • Lines inside YAML frontmatter, fenced code blocks (``` or ~~~), lists, and blockquotes are left untouched.

The change is applied in the editor only, right after edits, so you can keep using Tab normally.

Features

  • Treats indented lines as normal text (no indented code blocks).
  • Preserves fenced code blocks.
  • Avoids touching list and quote lines.
  • Uses your actual typed indentation (tabs or spaces).
  • Toggle on/off in the plugin settings.

Development (esbuild)

  1. Install dependencies:
    • npm install
  2. Build:
    • npm run build
  3. Watch mode:
    • npm run dev

Notes

This intentionally deviates from CommonMark by neutralizing indented code blocks.

HealthExcellent
ReviewSatisfactory
About
Disable indented code blocks so lines starting with tabs or four+ spaces appear as normal, editable indentation in Live Preview. Rewrite affected line starts with an invisible zero-width non-joiner (U+200C) to break the indented-code rule while leaving YAML, fenced code blocks, lists, and blockquotes untouched.
EditingMarkdown
Details
Current version
1.1.4
Last updated
2 months ago
Created
6 months ago
Updates
6 releases
Downloads
1k
Compatible with
Obsidian 1.5.3+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Sponsor
Support
PayPal
Author
Jan SandströmJan Sandströmpixerojan
GitHubpixerojan
  1. Community
  2. Plugins
  3. Editing
  4. Indent

Related plugins

Outliner

Work with your lists like in Workflowy or Roam Research.

Various Complements

Complete words similar to auto-completion in an IDE.

Heading Shifter

Easily Shift and Change Markdown headings.

Easy Copy

Easily copy the text within inline code, bold text (and many other formats), or quickly generate an elegant link to a heading or block.

Importer

Convert your data to Markdown files you can use in Obsidian. Works with Apple Notes, OneNote, Evernote, Notion, Google Keep, and many other formats.

Advanced Tables

Improved table navigation, formatting, and manipulation.

Meta Bind

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

Consistent Attachments and Links

Move note attachments and update links automatically.

LanguageTool Integration

advanced spell/grammar checks with the help of language-tool.

Creases

Tools for effectively folding Markdown sections.