aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-09-15 12:38:12 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2016-09-15 12:38:12 +0200
commitcfc84164475d3bec8be9482c21a705adc93a54f5 (patch)
tree2aeb27d4994934bcbc2ca0ceddb582c2810b4d92
parent953d4809b3836f972e0e5b6fb090f8df6bc0f214 (diff)
Added cases clarifying precedence of shortcut links.
Closes #427.
-rw-r--r--spec.txt28
1 files changed, 27 insertions, 1 deletions
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:
<p><a href="/url2">foo</a></p>
````````````````````````````````
+```````````````````````````````` example
+[foo][]
+
+[foo]: /url1
+.
+<p><a href="/url1">foo</a></p>
+````````````````````````````````
+
+Inline links also take precedence:
+
+```````````````````````````````` example
+[foo]()
+
+[foo]: /url1
+.
+<p><a href="">foo</a></p>
+````````````````````````````````
+
+```````````````````````````````` example
+[foo](not a link)
+
+[foo]: /url1
+.
+<p><a href="/url1">foo</a>(not a link)</p>
+````````````````````````````````
In the following case `[bar][baz]` is parsed as a reference,
`[foo]` as normal text: