aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-03-25 15:21:55 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-03-25 15:21:55 -0700
commit33fb419b0dbe4a9fbd35b5f00e0a5556004f151e (patch)
treef6e53605ba5b62dc8cee05884f871b36791d9637
parent5c544db005b6036c8d29769cb913c45e626b6235 (diff)
Allow spaces inside link destinations in pointy brackets.
This reverts a change in 0.24 and should make things easier for people working with image paths containing spaces. Closes #503.
-rw-r--r--spec.txt15
1 files changed, 7 insertions, 8 deletions
diff --git a/spec.txt b/spec.txt
index 5e782f3..44c2c1d 100644
--- a/spec.txt
+++ b/spec.txt
@@ -2811,7 +2811,7 @@ them.
```````````````````````````````` example
[Foo bar]:
-<my%20url>
+<my url>
'title'
[Foo bar]
@@ -7237,7 +7237,7 @@ following rules apply:
A [link destination](@) consists of either
- a sequence of zero or more characters between an opening `<` and a
- closing `>` that contains no spaces, line breaks, or unescaped
+ closing `>` that contains no line breaks or unescaped
`<` or `>` characters, or
- a nonempty sequence of characters that does not include
@@ -7308,9 +7308,8 @@ Both the title and the destination may be omitted:
<p><a href="">link</a></p>
````````````````````````````````
-
-The destination cannot contain spaces or line breaks,
-even if enclosed in pointy brackets:
+The destination can only contain spaces if it is
+enclosed in pointy brackets:
```````````````````````````````` example
[link](/my uri)
@@ -7318,13 +7317,14 @@ even if enclosed in pointy brackets:
<p>[link](/my uri)</p>
````````````````````````````````
-
```````````````````````````````` example
[link](</my uri>)
.
-<p>[link](&lt;/my uri&gt;)</p>
+<p><a href="my%20uri">link</a></p>
````````````````````````````````
+The destination cannot contain line breaks,
+even if enclosed in pointy brackets:
```````````````````````````````` example
[link](foo
@@ -7334,7 +7334,6 @@ bar)
bar)</p>
````````````````````````````````
-
```````````````````````````````` example
[link](<foo
bar>)