As a writer I´ve been missing indentations in Obsidian.
This is my plugin to 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 fenced code blocks (``` or ~~~), lists, and blockquotes are left untouched.
You can find it here: GitHub - PixeroJan/obsidian-indent: Disable indented code blocks so tabs/spaces become normal indentation in Live Preview.
-
You can use my PluginHub to easily install directly from Github: https://github.com/PixeroJan/obsidian-pluginhub