Editor ignores "Tab size: 2" setting for nested lists (always inserts 4 spaces)

Steps to reproduce

  1. Open the Sandbox vault (Help → Sandbox vault).
  2. Go to Settings → Editor.
  3. Ensure “Use tabs” is OFF.
  4. Change “Tab size” to 2.
  5. Create a new note.
  6. Type a list item: - Item 1.
  7. Press Enter to create a new line, then press Tab to indent.
  8. Switch to Source Mode (or check the file with an external editor) to count the spaces.

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

When pressing Tab inside a list with “Tab size” set to 2, I expect the indentation to increase by 2 spaces

Actual result

The editor inserts 4 spaces regardless of the “Tab size” setting. The

  • A
    • B
    • C
      • D
    • E
  • F
    This behavior causes compatibility issues with external parsers (like mkdocs-material) that rely on 2-space indentation for nested lists.

Environment

SYSTEM INFO:
Obsidian version: v1.11.7
Installer version: v1.7.7
Operating system: Windows 11 Pro 10.0.26200
Login status: not logged in
Language: zh
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none


Additional information

The “Tab size” setting in Obsidian seems to only affect the visual rendering width of the indentation within the Obsidian editor.
However, when I verify the file content using an external editor (like VS Code), the file clearly contains 4 space characters for the indentation

Yes, in fact it’s not “tab size”. It’s “Indent visual width”.
Obsidian_kyRn4ofaHC

1 Like