Steps to reproduce
- Open new document
- Write a sentence and include an inline code span with consecutive interior spaces:
# Test document **Inline Code**: `foo bar` (baz)
Expected result
Consecutive spaces are not collapsed, in either Editor or Reader mode.
Test Document
Inline Code:
foo··bar
(baz)
Actual result
Consecutive spaces are collapsed, in both Editor and Reader mode.
Test Document
Inline Code:
foo·bar
(baz)
Environment
Additional information
According to CommonMark Spec, and conventional Markdown experience, interior consecutive spaces are not supposed to be collapsed:
Interior spaces are not collapsed:
`foo···bar· baz`
<p><code>foo···bar··baz</code></p>
Note that browsers will typically collapse consecutive spaces when rendering
<code>
elements, so it is recommended that the following CSS be used:code{white-space: pre-wrap;}