From bc9a9f4425db870fad7a595e2d2f54cd2bb047bc Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Sat, 6 Aug 2016 14:05:37 -0700 Subject: Add examples for Unicode whitespace In light of jgm/commonmark.js#107, add a few examples/test cases to make sure the distinction between Unicode whitespace and regular whitespace is kept. --- spec.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'spec.txt') diff --git a/spec.txt b/spec.txt index 3de3ca1..460cfa4 100644 --- a/spec.txt +++ b/spec.txt @@ -5670,6 +5670,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` +. +

a  b

+```````````````````````````````` + + 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. @@ -7360,6 +7370,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") +. +

link

+```````````````````````````````` + + Nested balanced quotes are not allowed without escaping: ```````````````````````````````` example -- cgit v1.2.3