aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-04-06 09:05:59 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-04-06 09:05:59 -0700
commit37eaf9daba17f9fbca7c674136fa24524c49ef1e (patch)
tree0db60514f3dfb6c317b43872f240396ebda55407
parent1162c38f2f1629b16bb4c54d9fc4719cb4af0b1b (diff)
Added additional spec examples involving link destinations in `<>`.
Closes #473.
-rw-r--r--spec.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/spec.txt b/spec.txt
index 6384390..9bf428d 100644
--- a/spec.txt
+++ b/spec.txt
@@ -7464,6 +7464,15 @@ bar>)
bar>)</p>
````````````````````````````````
+The destination can contain `)` if it is enclosed
+in pointy brackets:
+
+```````````````````````````````` example
+[a](<b)c>)
+.
+<p><a href="b)c">a</a></p>
+````````````````````````````````
+
Pointy brackets that enclose links must be unescaped:
```````````````````````````````` example
@@ -7472,6 +7481,18 @@ Pointy brackets that enclose links must be unescaped:
<p>[link](&lt;foo&gt;)</p>
````````````````````````````````
+These are not links, because the opening pointy bracket
+is not matched properly:
+
+```````````````````````````````` example
+[a](<b)c
+[a](<b)c>
+[a](<b>c)
+.
+<p>[a](&lt;b)c
+[a](&lt;b)c&gt;
+[a](<b>c)</p>
+````````````````````````````````
Parentheses inside the link destination may be escaped: