Skip to content

Commit

Permalink
Add a definition of Zero-width space, & link to it from definition of…
Browse files Browse the repository at this point in the history
… Unicode whitespace character and from Zero-width space sub-section

Fixes: commonmark-spec#643
  • Loading branch information
haqer1 committed Apr 24, 2020
1 parent 41ada4c commit 36cd40b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions spec.txt
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,15 @@ form feed (`U+000C`), or carriage return (`U+000D`).
[Whitespace](@) is a sequence of one or more [whitespace
characters].

A [zero-width space](@) character is a non-printing and usually invisible
character (`U+000D`) (encodable in HTML as \​ or \​), which can be
used, for instance, for special spacing effects in text (and which in Markdown
can also be used to change the meaning of an adjacent character).

A [Unicode whitespace character](@) is
any code point in the Unicode `Zs` general category, or a tab (`U+0009`),
carriage return (`U+000D`), newline (`U+000A`), or form feed
(`U+000C`).
carriage return (`U+000D`), newline (`U+000A`), form feed
(`U+000C`), or [zero-width space].

[Unicode whitespace](@) is a sequence of one
or more [Unicode whitespace characters].
Expand Down Expand Up @@ -623,8 +628,8 @@ foo
## Zero-width space

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

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

0 comments on commit 36cd40b

Please sign in to comment.