Markdown code blocks ignore tab width setting #8067
Replies: 6 comments 2 replies
-
this should've been tested when they added tab size to settings :/ I would like this too. for now, this custom css works for me: html {
tab-size: 4;
} |
Beta Was this translation helpful? Give feedback.
-
This also seems to be the case for markdown blocks in .md files, as can be seen on the preact project README: as it uses the same implementation (highlight.js). |
Beta Was this translation helpful? Give feedback.
-
@dipree Please take a look at this! |
Beta Was this translation helpful? Give feedback.
-
For anyone not willing to wait for Github to get around to this, install a CSS customization extension (say "Custom CSS by Denis") and then just set Will be applied globally and fix this till Github pushes a proper fix. |
Beta Was this translation helpful? Give feedback.
-
Still not fixed in March 2023... |
Beta Was this translation helpful? Give feedback.
-
Please fix this, I've literally never met anyone who prefers gigantic 8-char-wide tabs over 4-char or 2-char ones. TBH I don't know why they don't just change the default, other than that it's the browser default for some reason. |
Beta Was this translation helpful? Give feedback.
-
While the
Settings/Appearance/Tab size preference
works great when viewing code, it seems to be ignored by the code rendered in Markdown blocks, i.e.:looks like
even though my Tab size preference is set to 4.
It would be even better if the markdown renderer took the root .editorconfig from the repo into consideration.
Beta Was this translation helpful? Give feedback.
All reactions