From d9accf4b63486fab1761eb1065354d3167bb9912 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 4 Jun 2015 12:59:01 +0200 Subject: Require a nonspace character in link label. Closes #322. Added example. --- spec.txt | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/spec.txt b/spec.txt index 6c660bb..f6417cf 100644 --- a/spec.txt +++ b/spec.txt @@ -6095,6 +6095,7 @@ that [matches] a [link reference definition] elsewhere in the document. A [link label](@link-label) begins with a left bracket (`[`) and ends with the first right bracket (`]`) that is not backslash-escaped. +Between these brackets there must be at least one non-[whitespace character]. Unescaped square bracket characters are not allowed in [link label]s. A link label can have at most 999 characters inside the square brackets. @@ -6341,6 +6342,30 @@ backslash-escaped:

foo

. +A [link label] must contain at least one non-[whitespace character]: + +. +[] + +[]: /uri +. +

[]

+

[]: /uri

+. + +. +[ + ] + +[ + ]: /uri +. +

[ + ]

+

[ + ]: /uri

+. + A [collapsed reference link](@collapsed-reference-link) consists of a [link label] that [matches] a [link reference definition] elsewhere in the -- cgit v1.2.3