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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions spec.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7953,7 +7953,8 @@ allowed between the two sets of brackets:
A [shortcut reference link](@)
consists of a [link label] that [matches] a
[link reference definition] elsewhere in the
document and is not followed by `[]` or a link label.
document and is not followed by `[]` or a [link label] that
[matches] a [link reference definition].
The contents of the first link label are parsed as inlines,
which are used as the link's text. The link's URI and title
are provided by the matching link reference definition.
Expand Down Expand Up @@ -8104,16 +8105,16 @@ Here, though, `[foo][bar]` is parsed as a reference, since
````````````````````````````````


Here `[foo]` is not parsed as a shortcut reference, because it
is followed by a link label (even though `[bar]` is not defined):
Here `[foo]` is parsed as a shortcut reference, although it
is followed by a link label (but the label `[bar]` is not defined):

```````````````````````````````` example
[foo][bar][baz]

[baz]: /url1
[foo]: /url2
.
<p>[foo]<a href="/url1">bar</a></p>
<p><a href="/url2">foo</a><a href="/url1">bar</a></p>
````````````````````````````````


Expand Down