From cfc84164475d3bec8be9482c21a705adc93a54f5 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 15 Sep 2016 12:38:12 +0200 Subject: Added cases clarifying precedence of shortcut links. Closes #427. --- spec.txt | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/spec.txt b/spec.txt index 02d1c7f..fb1427a 100644 --- a/spec.txt +++ b/spec.txt @@ -8046,7 +8046,8 @@ following closing bracket: ```````````````````````````````` -Full references take precedence over shortcut references: +Full and compact references take precedence over shortcut +references: ```````````````````````````````` example [foo][bar] @@ -8057,6 +8058,31 @@ Full references take precedence over shortcut references:

foo

```````````````````````````````` +```````````````````````````````` example +[foo][] + +[foo]: /url1 +. +

foo

+```````````````````````````````` + +Inline links also take precedence: + +```````````````````````````````` example +[foo]() + +[foo]: /url1 +. +

foo

+```````````````````````````````` + +```````````````````````````````` example +[foo](not a link) + +[foo]: /url1 +. +

foo(not a link)

+```````````````````````````````` In the following case `[bar][baz]` is parsed as a reference, `[foo]` as normal text: -- cgit v1.2.3