From 2136f824b739c9525d25a6850f0bede1cd7d964b Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 5 Jan 2016 22:33:49 -0800 Subject: Disallow spaces in link destinations, even in pointy braces. See discussion at http://talk.commonmark.org/t/minor-comments-and-unclarities-after-reading-the-spec/779 http://talk.commonmark.org/t/issues-to-resolve-before-1-0-release/1287/12 --- spec.txt | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'spec.txt') diff --git a/spec.txt b/spec.txt index fc2825d..f0a54ea 100644 --- a/spec.txt +++ b/spec.txt @@ -2363,7 +2363,7 @@ them. . [Foo bar]: - + 'title' [Foo bar] @@ -6465,8 +6465,8 @@ following rules apply: A [link destination](@link-destination) consists of either - a sequence of zero or more characters between an opening `<` and a - closing `>` that contains no line breaks or unescaped `<` or `>` - characters, or + closing `>` that contains no spaces, line breaks, or unescaped + `<` or `>` characters, or - a nonempty sequence of characters that does not include ASCII space or control characters, and includes parentheses @@ -6532,8 +6532,8 @@ Both the title and the destination may be omitted:

link

. -If the destination contains spaces, it must be enclosed in pointy -braces: +The destination cannot contain spaces or line breaks, +even if enclosed in pointy brackets: . [link](/my uri) @@ -6544,11 +6544,9 @@ braces: . [link](
) . -

link

+

[link](</my uri>)

. -The destination cannot contain line breaks, even with pointy braces: - . [link](foo bar) -- cgit v1.2.3