From 7bba0e59cecf560df79df664b155002ff9dbd39d Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Sun, 18 Jun 2017 17:24:06 +0200 Subject: [PATCH] Allow shortcut reference link before unmatched label --- spec.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/spec.txt b/spec.txt index 2efb3788..d69a1044 100644 --- a/spec.txt +++ b/spec.txt @@ -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. @@ -8104,8 +8105,8 @@ 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] @@ -8113,7 +8114,7 @@ is followed by a link label (even though `[bar]` is not defined): [baz]: /url1 [foo]: /url2 . -

[foo]bar

+

foobar

````````````````````````````````