diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-09-15 12:38:12 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-09-15 12:38:12 +0200 |
commit | cfc84164475d3bec8be9482c21a705adc93a54f5 (patch) | |
tree | 2aeb27d4994934bcbc2ca0ceddb582c2810b4d92 | |
parent | 953d4809b3836f972e0e5b6fb090f8df6bc0f214 (diff) |
Added cases clarifying precedence of shortcut links.
Closes #427.
-rw-r--r-- | spec.txt | 28 |
1 files changed, 27 insertions, 1 deletions
@@ -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: |