From 733c2ea2818f5a369b74a594447361ed3eec1f21 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 15 Sep 2016 12:38:36 +0200 Subject: Update spec. --- test/spec.txt | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'test/spec.txt') diff --git a/test/spec.txt b/test/spec.txt index 02d1c7f..fb1427a 100644 --- a/test/spec.txt +++ b/test/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