Tab doesn't work in fenced code blocks

Steps to reproduce

  1. Create a new note
  2. Use 3 backticks ` to create a fenced code block
  3. Type some code and try to indent with tab key. For example:
if foo {

Tab does work if it’s not the first character in the line. So if you type an f, then press tab, a tab does get inserted.

Expected result

I expected a tab character to be inserted

Actual result

Cursor stays at beginning of line, no tab gets inserted


  • Operating system: Arch Linux, btw
  • Obsidian version: 0.6.4
  • Using custom CSS: None

I can’t reproduce on windows, do you still have this problem?

I have this problem on Windows 1909, v0.6.4.

Ok, I can reproduce now. That is an odd bug!!! Thanks!

I can reporduce in windows10, v0.6.4

    int main()   //when there are sth, can not reproduce
    //totally newline at the very begining, can reproduce.

This was the first thing I tried =). Glad someone else noticed

I also have this issue, running Ubuntu 18.04 LTS.

Found the bug. Will be fixed.