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.
From the syntax spec: "A single backtick surrounded by spaces is treated as literal backtick.". This is the reason why the second example shows only backticks.
As for the first example: No backtick is surrounded by whitespace because the first one is at the start of the line and the last one at the end. However, I think for consistency the first example should also be converted to <p>` `</p> - what do you think?
The rule is just: If there is a space after the opening backticks, remove it. Then if there is one before the closing backticks, remove it. This is always done, so it doesn't depend on what exactly is inside the code span.
I will update the parser so that the start of a line is also treated as whitespace. So for ` ` at the start of line the first backtick is then also surrounded by whitespace and therefore treated as text.