Steps to reproduce
- Open the Sandbox vault (Help → Sandbox vault).
- Go to Settings → Editor.
- Ensure “Use tabs” is OFF.
- Change “Tab size” to 2.
- Create a new note.
- Type a list item: - Item 1.
- Press Enter to create a new line, then press Tab to indent.
- 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
