-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
Understanding "first link label" in collapsed/shortcut reference link definitions #746
Comments
I think you’re conflating the term “label” and the term “definition”: [MY link target]: /uri
^-- this is a definition: `[MY link target]` could be called a label.
[my LINK target][]
^-- this is a reference: `[my LINK target]` is a label. `[]` could be called another label.
[my link TARGET]
^-- this is a reference: `[my link TARGET]` is a label.
[MY LINK TARGET]: /uri2
^-- this is a definition: `[MY LINK TARGET]` could be called a label. If two (or more) defintions with the same normalized identifier taken from the label, exist, the first one “wins”. |
Yes "
A shortcut reference has only one label, but the paragraph in the Spec 0.30 still uses phrase "first link label", which makes me confusing. (boldface added by me, again)
One can argue that its "second label" is omitted... Maybe the meaning of " |
I agree that this is confusing. I've just deleted the "first"s. Thanks! |
Thank you, too (also for your wonderful |
In spec 0.30, the definitions of collapsed reference link and shortcut reference link both contain
Here the meaning of "first link label" is unclear.
On https://spec.commonmark.org/dingus, markdown snippet
is parsed to
See permalink. Considering only the case of words, BabelMark 3 gives the same result.
This test shows that the resulting link text in output is the parsing result of the link label making up current collapsed/shortcut reference link, which seems to me that the phrase "first link label" is misleading. If the first link label is chose, then where are the remaining link labels?
There was a similar issue #581 reporting misleading "first link label" in definition of "full reference link", which was resolved by removing that phrase, in commit 5004d7d (Fix misleading text for full reference link., 2019-05-01). Full reference link is special in having its link text explicitly given, but the "first link label" phrase is still misleading in other two kinds of reference links.
PS: I originally found this mystery when reading the GFM spec.
PS 2: When #581 was opened, there're three occurrences of "first link label", all added by the second commit in this repo,
master
branch: 870e63b (initial commit, 2014-08-14).The text was updated successfully, but these errors were encountered: