From 33fb419b0dbe4a9fbd35b5f00e0a5556004f151e Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 25 Mar 2018 15:21:55 -0700 Subject: 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. --- spec.txt | 15 +++++++-------- 1 file 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]: - + '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:

link

```````````````````````````````` - -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:

[link](/my uri)

```````````````````````````````` - ```````````````````````````````` example [link](
) . -

[link](</my uri>)

+

link

```````````````````````````````` +The destination cannot contain line breaks, +even if enclosed in pointy brackets: ```````````````````````````````` example [link](foo @@ -7334,7 +7334,6 @@ bar) bar)

```````````````````````````````` - ```````````````````````````````` example [link]() -- cgit v1.2.3