diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-09-14 17:13:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-14 17:13:48 +0200 |
commit | 953d4809b3836f972e0e5b6fb090f8df6bc0f214 (patch) | |
tree | a0b9b77bab9bff387fe4172e221d8a1159a845ee | |
parent | f32da1ec7a06fa31ab91f0a535c8a7f1ec62d465 (diff) | |
parent | bc9a9f4425db870fad7a595e2d2f54cd2bb047bc (diff) |
Merge pull request #422 from TimothyGu/unicode-whitespace
Add examples for Unicode whitespace
-rw-r--r-- | spec.txt | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -5678,6 +5678,16 @@ single spaces, just as they would be by a browser: ```````````````````````````````` +Not all [Unicode whitespace] (for instance, non-breaking space) is +collapsed, however: + +```````````````````````````````` example +`a b` +. +<p><code>a b</code></p> +```````````````````````````````` + + Q: Why not just leave the spaces, since browsers will collapse them anyway? A: Because we might be targeting a non-HTML format, and we shouldn't rely on HTML-specific rendering assumptions. @@ -7362,6 +7372,16 @@ may be used in titles: ```````````````````````````````` +Titles must be separated from the link using a [whitespace]. +Other [Unicode whitespace] like non-breaking space doesn't work. + +```````````````````````````````` example +[link](/url "title") +. +<p><a href="/url%C2%A0%22title%22">link</a></p> +```````````````````````````````` + + Nested balanced quotes are not allowed without escaping: ```````````````````````````````` example |