diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-08-01 16:12:01 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-08-01 16:12:42 -0700 |
commit | e7e2b3071c32589dea1f4adca69edbd2a79c7b3c (patch) | |
tree | 66275896e9152bf902c172040acebf6cb7b84108 | |
parent | 3dd4103d0ed46185296eda8b51b3b51b98a2f117 (diff) |
Further clarifications of link labels.
Say explicitly that normalization involves stripping off
leading and trailing bracket characters, before stripping
leading and trailing whitespace.
See #479.
-rw-r--r-- | spec.txt | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -7587,13 +7587,15 @@ that [matches] a [link reference definition] elsewhere in the document. A [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 labels]. A link label can have at most 999 -characters inside the square brackets. +Unescaped square bracket characters are not allowed inside the +opening and closing square brackets of [link labels]. A link +label can have at most 999 characters inside the square +brackets. One label [matches](@) another just in case their normalized forms are equal. To normalize a -label, perform the *Unicode case fold*, strip leading and trailing +label, strip off the opening and closing brackets, +perform the *Unicode case fold*, strip leading and trailing [whitespace] and collapse consecutive internal [whitespace] to a single space. If there are multiple matching reference link definitions, the one that comes first in the |