Plugin: Indent

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:

Just tried this out, this disables Tab and Shift Tab to indent and unindent on modified lines, and make indentation guide lines disappear (in indented list, and text indented after a unindented line).

If a text is indented after a list item, toggle list on that next line will insert list item from the beginning of the line instead of just before the text and spare the indentations.

I have a LatexSuite snippet that makes a math block of the same indentation level, the plugin breaks it too ( the last line is not indented to the same level).

This is mainly meant for writers who likes to see the text with indents. I presume there are a lot of special cases when it will not work correctly. But I’ll look into it.

@erroredhcker please check message.