aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec.txt25
1 files changed, 25 insertions, 0 deletions
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:
<p><a href="/uri">foo</a></p>
.
+A [link label] must contain at least one non-[whitespace character]:
+
+.
+[]
+
+[]: /uri
+.
+<p>[]</p>
+<p>[]: /uri</p>
+.
+
+.
+[
+ ]
+
+[
+ ]: /uri
+.
+<p>[
+ ]</p>
+<p>[
+ ]: /uri</p>
+.
+
A [collapsed reference link](@collapsed-reference-link)
consists of a [link label] that [matches] a
[link reference definition] elsewhere in the