In-line code (in `backticks`) does not preserve whitespace

Here is a line of text in code block, with two spaces before, between, and after each word:

  Surrounded  by  double-spaces  

And here is the exact same line of text in an inline code block, with curly-quotes outside the code block to make it more obvious:

Surrounded by double-spaces

The leading and trailing spaces were stripped entirely, and the double-spaces were merged into single-spaces.

I would expect code in backticks should be presented verbatim.

1 Like

I don't think there's a whole lot we can do about that at our level; that's just a Discourse thing. I suppose we can ask.

Note that whitespace is preserved in ``` blocks, though (although the trailing whitespaces is of course invisible):

  Surrounded  by  double-spaces