summaryrefslogtreecommitdiff
path: root/test/spec.txt
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-09-15 12:38:36 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2016-09-15 12:38:36 +0200
commit733c2ea2818f5a369b74a594447361ed3eec1f21 (patch)
treec566cfdeb6ae7efe2724a37d7926f0ae6e15cafe /test/spec.txt
parenta1f271dd365155fcf9f529d139d6efd06bea3dc3 (diff)
Update spec.
Diffstat (limited to 'test/spec.txt')
-rw-r--r--test/spec.txt28
1 files changed, 27 insertions, 1 deletions
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:
<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: