summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-09-09 22:04:25 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-09-09 22:04:25 -0700
commitc9817041afa133c5dc9869e5b309667861527c30 (patch)
tree139d53bb1b35066e992fbc7d258cb60d302ffbda /test
parent102d254eb8195c69875e6d629d47da83b3b51568 (diff)
Update spec.txt.
Diffstat (limited to 'test')
-rw-r--r--test/spec.txt24
1 files changed, 19 insertions, 5 deletions
diff --git a/test/spec.txt b/test/spec.txt
index 6862838..6661752 100644
--- a/test/spec.txt
+++ b/test/spec.txt
@@ -2880,6 +2880,18 @@ The link destination may not be omitted:
<p>[foo]</p>
````````````````````````````````
+The title must be separated from the link destination by
+whitespace:
+
+```````````````````````````````` example
+[foo]: <bar>(baz)
+
+[foo]
+.
+<p>[foo]: &lt;bar&gt;(baz)</p>
+<p>[foo]</p>
+````````````````````````````````
+
Both title and destination can contain backslash escapes
and literal backslashes:
@@ -5565,7 +5577,7 @@ foo
## Entity and numeric character references
All valid HTML entity references and numeric character
-references, except those occuring in code blocks and code spans,
+references, except those occurring in code blocks and code spans,
are recognized as such and treated as equivalent to the
corresponding Unicode characters. Conforming CommonMark parsers
need not store information about whether a particular character
@@ -5983,15 +5995,17 @@ of one or more `_` characters that is not preceded or followed by
a non-backslash-escaped `_` character.
A [left-flanking delimiter run](@) is
-a [delimiter run] that is (a) not followed by [Unicode whitespace],
-and (b) not followed by a [punctuation character], or
+a [delimiter run] that is (1) not followed by [Unicode whitespace],
+and either (2a) not followed by a [punctuation character], or
+(2b) followed by a [punctuation character] and
preceded by [Unicode whitespace] or a [punctuation character].
For purposes of this definition, the beginning and the end of
the line count as Unicode whitespace.
A [right-flanking delimiter run](@) is
-a [delimiter run] that is (a) not preceded by [Unicode whitespace],
-and (b) not preceded by a [punctuation character], or
+a [delimiter run] that is (1) not preceded by [Unicode whitespace],
+and either (2a) not preceded by a [punctuation character], or
+(2b) preceded by a [punctuation character] and
followed by [Unicode whitespace] or a [punctuation character].
For purposes of this definition, the beginning and the end of
the line count as Unicode whitespace.