Adjust Code Tab Size to 4 in Markdown Preview

Sets the tab size to 4 in the Markdown preview for code blocks in Markdown documents. I consider a tab size of 4 being standard and the default of 8 being unbearable. The few people, if any, using a different tab size than 4 can use the custom markdown preview style feature, if it is going to be fixed anytime (https://github.com/microsoft/vscode/issues/77290).

[`tab-size` is still marked *experimental* in the MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/tab-size), but it doesn't hurt, if not supported. However, in the used Chromium version it is supported.
This commit is contained in:
Neonit 2019-07-22 11:49:04 +02:00 committed by GitHub
parent 0437705d48
commit c5ab082ed7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -186,6 +186,7 @@ pre.hljs code > div {
pre code {
color: var(--vscode-editor-foreground);
tab-size: 4;
}