cmark

My personal build of CMark ✏️

Commit
240400e1c397c6b379c0c7c21d1ec658dbb24153
Parent
c52aecff5e1fb1c611f0803203e7efa933a9a472
Author
John MacFarlane <jgm@berkeley.edu>
Date

Updated spec.

Diffstat

1 file changed, 25 insertions, 0 deletions

Status File Name N° Changes Insertions Deletions
Modified test/spec.txt 25 25 0
diff --git a/test/spec.txt b/test/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