- Commit
- 733c2ea2818f5a369b74a594447361ed3eec1f21
- Parent
- a1f271dd365155fcf9f529d139d6efd06bea3dc3
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Update spec.
My personal build of CMark ✏️
Update spec.
1 file changed, 27 insertions, 1 deletion
Status | File Name | N° Changes | Insertions | Deletions |
Modified | test/spec.txt | 28 | 27 | 1 |
diff --git 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: