show-whitespace
is wrong for tabs in markdown because of a GitHub bug
#5708
Labels
show-whitespace
is wrong for tabs in markdown because of a GitHub bug
#5708
Please ensure:
Example URLs
show-whitespace
sandbox#18Extension version
22.5.22
Browser(s) used
Safari
Description
Custom tab size is broken for me: https://github.com/settings/appearance
Tabs are rendered as 8 spaces even my setting is for 2:
This is because GitHub isn't adding any
data-tab-size
attributes in comments for me, even without RGH. I'm only seeing them on embedded code.And for some reason we default to "4" instead of "8" in our code:
refined-github/source/features/show-whitespace.css
Line 39 in 50c6faf
Demo
Live:
Screenshot:
![Screen Shot 1](https://user-images.githubusercontent.com/1402241/174530585-8bf68d6d-c397-4c96-b4bd-2d51974418fd.png)
Solution
We have 2 options:
:where(:root) {--tab-size: 4; tab-size: 4}
We should probably do both. The latter can be hotfixed.
Include in this issue:
The text was updated successfully, but these errors were encountered: