You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inline code (i.e. stuff delimited by `) is stripped of spaces, even though those may be significant and should be preserved (except for special cases). Typing inline code with leading or trailing spaces currently seems to be impossible.
Expected and observed behavior
(I am using Mattermost Version: 9.1.1, Database Schema Version: 113, Database: postgres.)
When typing inline code, all spaces should usually be preserved, as they often convey meaning. For example, if I tell someone they can make something a bullet point by prepending - to a line of text, the space is important; prepending - wouldn't work. Here are some examples of the wrong rendering.
` ` should render but in fact renders (i.e. an empty code element).
` ` should render but in fact renders (i.e. an empty code element).
` x` should render x but in fact renders x.
`\ ` should render \ but in fact renders \.
The caveat to this is that spaces are needed as part of the markup when backticks are at the start or the end of the code. That is why Commonmark states
If the resulting string both begins and ends with a space character, but does not consist entirely of space characters, a single space character is removed from the front and back.
Here are some examples where this rule applies:
`` ` `` should render ` and does.
`` ` `` should render ` but in fact renders `.
` - ` should render - but in fact renders -.
` - ` should render - but in fact renders -.
More examples can be found in the Commonmark spec or in the markup of this message.
The text was updated successfully, but these errors were encountered:
Summary
Inline code (i.e. stuff delimited by
`
) is stripped of spaces, even though those may be significant and should be preserved (except for special cases). Typing inline code with leading or trailing spaces currently seems to be impossible.Expected and observed behavior
(I am using Mattermost Version: 9.1.1, Database Schema Version: 113, Database: postgres.)
When typing inline code, all spaces should usually be preserved, as they often convey meaning. For example, if I tell someone they can make something a bullet point by prepending
-
to a line of text, the space is important; prepending-
wouldn't work. Here are some examples of the wrong rendering.` `
should render(i.e. an empty code element).
` `
should render(i.e. an empty code element).
` x`
should renderx
but in fact rendersx
.`\ `
should render\
but in fact renders\
.The caveat to this is that spaces are needed as part of the markup when backticks are at the start or the end of the code. That is why Commonmark states
Here are some examples where this rule applies:
`` ` ``
should render`
and does.`` ` ``
should render`
but in fact renders`
.` - `
should render-
but in fact renders-
.` - `
should render-
but in fact renders-
.More examples can be found in the Commonmark spec or in the markup of this message.
The text was updated successfully, but these errors were encountered: