Skip to content

Commit 3ed1b91

Browse files
committed
Add a definition of Zero-width space, & link to it from definition of Unicode whitespace character and from Zero-width space sub-section
Fixes: commonmark-spec#643
1 parent 5bcc218 commit 3ed1b91

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

spec.txt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,15 @@ form feed (`U+000C`), or carriage return (`U+000D`).
313313
[Whitespace](@) is a sequence of one or more [whitespace
314314
characters].
315315

316+
A [zero-width space](@) character is a non-printing and usually invisible
317+
character (`U+000D`) (encodable in HTML as \​ or \​), which can be
318+
used, for instance, for special spacing effects in text (and which in Markdown
319+
can also be used to change the meaning of an adjacent character).
320+
316321
A [Unicode whitespace character](@) is
317322
any code point in the Unicode `Zs` general category, or a tab (`U+0009`),
318-
carriage return (`U+000D`), newline (`U+000A`), or form feed
319-
(`U+000C`).
323+
carriage return (`U+000D`), newline (`U+000A`), form feed
324+
(`U+000C`), or [zero-width space].
320325

321326
[Unicode whitespace](@) is a sequence of one
322327
or more [Unicode whitespace characters].
@@ -623,8 +628,8 @@ foo
623628
## Zero-width space
624629

625630
For most use-cases requiring escapes it's worth considering using [backslash
626-
escapes], but zero-width space can be useful sometimes as well (to change the
627-
meaning of an adjacent character).
631+
escapes], but [zero-width space] can be useful sometimes as well (to change the
632+
meaning of an adjacent character, etc.).
628633

629634
Given differences in utilization of whitespace, zero-width space can be used to
630635
ensure emphasis, etc. in East Asian text:

0 commit comments

Comments
 (0)