Code Block - indentation issues

I am seeing some strange indenting in the editor when using code blocks.

I have a SQL statement and the initial lines are fine but indented sub-queries are actually indented the wrong way and past the left gutter. See attached screenshot.

Steps to reproduce

Create a code block using 3 back ticks, within the block indent some lines using either spaces or tabs.

Expected result

Text in indented lines is shifted right.

Actual result

Text in indented lines is shifted left.


  • Operating system: Windows 10, Mac OS
  • Obsidian version: 0.6.7
  • Using custom CSS: yes

I have the ‘Use Tabs’ preference turned off.

Additional information

do you have this problem with the default css?

I think that’s it. The indentation is fine with the standard theme.

I was using an out of date theme, when I updated to the latest version everything looks good again.