-
Notifications
You must be signed in to change notification settings - Fork 176
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
Spaces around info string? #60
Comments
We use an option called /~https://github.com/github/cmark/blob/07fe00f38e78846bc0760cb02a3b1441dffc9b6d/src/html.c#L186-L192 That aside, though, you're right that the spec is inconsistent; it says "trimmed of leading and trailing spaces" but the code calls which trims anything matching |
@kivikakk Thanks Well, another space-related thing is this: P.S: should I open issues like this one in the original cmark repo? |
You're right, this should say "spaces or tabs" specifically, not "spaces" (which is only I think you definitely could open these on the upstream cmark repo, or directly on the |
* Info string is trimmed of all whitespace As noted in github/cmark-gfm#60, the info string is not only trimmed of "spaces" (U+0020) but indeed all whitespace. Update the spec to reflect this. * "spaces" => "spaces or tabs" after thematic breaks
commonmark/commonmark-spec#505 got merged, so these issues are hopefully fixed 👍 |
The spec says:
I wonder what
spaces
actually means to in this context? spaces only? spaces and tabs?I usually check my assumptions using GitHub Markdown API, but this time I got strange output!
Output:
Input:
May someone explain what just happened?
NOTE
·
represents space→
represents tabThe text was updated successfully, but these errors were encountered: