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öm540 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.

91%
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
Last week
Created
4 months ago
Updates
6 releases
Downloads
540
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.

Advanced Tables

Improved table navigation, formatting, and manipulation.

Importer

Import data from Notion, Evernote, Apple Notes, Microsoft OneNote, Google Keep, Bear, Roam, and HTML files.

Meta Bind

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

Creases

Tools for effectively folding Markdown sections.

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.

Simplified Chinese Word Splitting

Adds Simplified Chinese word splitting support for the editor and Vim mode.

LanguageTool Integration

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

Easy Typing

Auto format when typing.