Skip to content

Commit c981704

Browse files
committed
Update spec.txt.
1 parent 102d254 commit c981704

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

test/spec.txt

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2880,6 +2880,18 @@ The link destination may not be omitted:
28802880
<p>[foo]</p>
28812881
````````````````````````````````
28822882

2883+
The title must be separated from the link destination by
2884+
whitespace:
2885+
2886+
```````````````````````````````` example
2887+
[foo]: <bar>(baz)
2888+
2889+
[foo]
2890+
.
2891+
<p>[foo]: &lt;bar&gt;(baz)</p>
2892+
<p>[foo]</p>
2893+
````````````````````````````````
2894+
28832895

28842896
Both title and destination can contain backslash escapes
28852897
and literal backslashes:
@@ -5565,7 +5577,7 @@ foo
55655577
## Entity and numeric character references
55665578

55675579
All valid HTML entity references and numeric character
5568-
references, except those occuring in code blocks and code spans,
5580+
references, except those occurring in code blocks and code spans,
55695581
are recognized as such and treated as equivalent to the
55705582
corresponding Unicode characters. Conforming CommonMark parsers
55715583
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
59835995
a non-backslash-escaped `_` character.
59845996

59855997
A [left-flanking delimiter run](@) is
5986-
a [delimiter run] that is (a) not followed by [Unicode whitespace],
5987-
and (b) not followed by a [punctuation character], or
5998+
a [delimiter run] that is (1) not followed by [Unicode whitespace],
5999+
and either (2a) not followed by a [punctuation character], or
6000+
(2b) followed by a [punctuation character] and
59886001
preceded by [Unicode whitespace] or a [punctuation character].
59896002
For purposes of this definition, the beginning and the end of
59906003
the line count as Unicode whitespace.
59916004

59926005
A [right-flanking delimiter run](@) is
5993-
a [delimiter run] that is (a) not preceded by [Unicode whitespace],
5994-
and (b) not preceded by a [punctuation character], or
6006+
a [delimiter run] that is (1) not preceded by [Unicode whitespace],
6007+
and either (2a) not preceded by a [punctuation character], or
6008+
(2b) preceded by a [punctuation character] and
59956009
followed by [Unicode whitespace] or a [punctuation character].
59966010
For purposes of this definition, the beginning and the end of
59976011
the line count as Unicode whitespace.

0 commit comments

Comments
 (0)