Closed davidanthoff closed 2 years ago
Not quite sure I understand this given your example code?
It seems like GitHub's markdown processor is collapsing multiple spaces inside code blocks — see https://github.com/commonmark/commonmark-spec/issues/532.
For example, if I add multiple spaces between x
and y
, the spaces are preserved in code blocks, but not in inline code spans:
function foo(x, y)
function foo(x, y)
In any case, the title of the issue could be clearer by specifying that only extra spaces (not all spaces) should be removed.
Ah, gotcha!
Yes, that is what I meant :)
For example,
function foo(x, y)
should be turned intofoo(x, y)