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

Allow shortcut reference link before unmatched label #483

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mgeier
Copy link
Contributor

@mgeier mgeier commented Jun 18, 2017

This is of course an edge case. I still think the spec should be changed to be more consistent.

This concerns example 540 from the spec 0.27:

[foo][bar][baz]

[baz]: /url1
[foo]: /url2

Everywhere else, reference links are only recognized if they are matching. Unmatched reference links don't have any significance to the parser.

Therefore, in this case, the unmatched reference link [foo][bar] should also not have any significance, and the parser should continue to happily match [foo] as shortcut reference link.

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

Successfully merging this pull request may close these issues.

1 participant