Refined-github: Hide extra spaces in embedded code (`show-whitespace`)

Created on 30 Jul 2019  路  3Comments  路  Source: sindresorhus/refined-github

First noted here: https://github.com/sindresorhus/refined-github/pull/2073#issuecomment-495856632

Technically a GitHub bug, but it appears to be pretty consistent: There's an extra space at the beginning and at the end of each line.

show-whitespace should skip these spaces when rendering embedded code.

Screenshot

broken

Live tests

https://github.com/sindresorhus/refined-github/blob/2e4a24d3957c205c7bc49525c69e1fa08593d2ca/readme.md#L107-L112

https://github.com/sindresorhus/refined-github/blob/0b40361983b362d028fac2fe0fed9486134fa41e/package.json#L1-L4

bug help wanted

Most helpful comment

Refined GitHub:

All 3 comments

If implemented, wouldn't the fix be broken for embedded code when GitHub "eventually" fixes it?

Pinging @lukehefson @shayfrendt

Refined GitHub:

If implemented, wouldn't the fix be broken for embedded code when GitHub "eventually" fixes it?

And then we'll fix it again, it's better than waiting until that _maybe_ happens.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

supremebeing7 picture supremebeing7  路  3Comments

vanniktech picture vanniktech  路  3Comments

mareksuscak picture mareksuscak  路  3Comments

hkdobrev picture hkdobrev  路  3Comments

shivapoudel picture shivapoudel  路  3Comments