New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blank code span inconsistency #704
Comments
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 |
This was surprising to at least one user. Anyway, picking up on the "single backtick" language, let's try a double backtick then:
This would do it for me, but the space goes away (a pair should go away, but then not for codespans that are solely spaces). |
If multiple backticks are used for code spans, a single space right after the opening backticks and right before the closing backticks are removed. So if you use:
you will get
This is always done, so one rule without special cases. |
There weren't two spaces to be removed, so why are you removing the one that is there? :-) |
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 |
The change mentioned in #704 (comment) will be in the next release. |
The text was updated successfully, but these errors were encountered: