Skip to content
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

Escaped spaces in link destination #192

Closed
ScottAbbey opened this issue Apr 30, 2017 · 1 comment
Closed

Escaped spaces in link destination #192

ScottAbbey opened this issue Apr 30, 2017 · 1 comment

Comments

@ScottAbbey
Copy link

The combination of the following two statements from section 6.5, Links, in the CommonMark spec:

The destination cannot contain spaces or line breaks, even if enclosed in pointy brackets:

Note that a backslash before a non-escapable character is just a backslash:

Leads me to believe that the following:

Input:

[a](te\ st)

Output:

<p><a href="te%5C%09st">a</a></p>

Behavior in this implementation of CommonMark is incorrect.

The javascript reference implementation sees this as <p>[a](te\ st)</p> instead, which seems to agree with the spec.

@jgm
Copy link
Member

jgm commented Apr 30, 2017 via email

@jgm jgm closed this as completed in 6ec3b48 Jun 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants