Page preview displaying code block indentation with tabs incorrectly

Steps to reproduce

  1. Make sure the ‘Indent using tabs’ option is enabled.
  2. Create a page with a code block whose content is indented with tab characters.
  3. Create a link for the above page.
  4. Hover the link with Ctrl/Cmd held to display the page preview.

Expected result

The indentation of the code block is rendered as ‘Tab indent size’.

Actual result

The indentation of the code block is rendered as 8 spaces regardless of ‘Tab indent size’.

Environment

  • Operating system:

Windows 11 22H2

  • Debug info:
SYSTEM INFO:
	Obsidian version: v1.1.16
	Installer version: v1.1.16
	Operating system: Windows 10 Pro 10.0.22621
	Login status: not logged in
	Insider build toggle: off
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

Additional information

thanks, that’s weird.

1 Like

Is this issue solved? I am experiencing the same issue while I push my markdown code blocks to github. I’ve tried everything to solve this, but code block markdowns written with obsidian renders as size 8 when its pushed to github.