Skip to content

Commit 8ea2cbd

Browse files
committed
Update spec.
1 parent 9d1033c commit 8ea2cbd

File tree

1 file changed

+34
-18
lines changed

1 file changed

+34
-18
lines changed

test/spec.txt

Lines changed: 34 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2612,7 +2612,8 @@ bar
26122612

26132613

26142614
However, a following blank line is needed, except at the end of
2615-
a document, and except for blocks of types 1--5, above:
2615+
a document, and except for blocks of types 1--5, [above][HTML
2616+
block]:
26162617

26172618
```````````````````````````````` example
26182619
<div>
@@ -2758,8 +2759,8 @@ an indented code block:
27582759

27592760
Fortunately, blank lines are usually not necessary and can be
27602761
deleted. The exception is inside `<pre>` tags, but as described
2761-
above, raw HTML blocks starting with `<pre>` *can* contain blank
2762-
lines.
2762+
[above][HTML blocks], raw HTML blocks starting with `<pre>`
2763+
*can* contain blank lines.
27632764

27642765
## Link reference definitions
27652766

@@ -2811,7 +2812,7 @@ them.
28112812

28122813
```````````````````````````````` example
28132814
[Foo bar]:
2814-
<my%20url>
2815+
<my url>
28152816
'title'
28162817

28172818
[Foo bar]
@@ -4458,9 +4459,10 @@ continued here.</p>
44584459
6. **That's all.** Nothing that is not counted as a list item by rules
44594460
#1--5 counts as a [list item](#list-items).
44604461

4461-
The rules for sublists follow from the general rules above. A sublist
4462-
must be indented the same number of spaces a paragraph would need to be
4463-
in order to be included in the list item.
4462+
The rules for sublists follow from the general rules
4463+
[above][List items]. A sublist must be indented the same number
4464+
of spaces a paragraph would need to be in order to be included
4465+
in the list item.
44644466

44654467
So, in this case we need two spaces indent:
44664468

@@ -5587,22 +5589,22 @@ references and their corresponding code points.
55875589

55885590
[Decimal numeric character
55895591
references](@)
5590-
consist of `&#` + a string of 1--8 arabic digits + `;`. A
5592+
consist of `&#` + a string of 1--7 arabic digits + `;`. A
55915593
numeric character reference is parsed as the corresponding
55925594
Unicode character. Invalid Unicode code points will be replaced by
55935595
the REPLACEMENT CHARACTER (`U+FFFD`). For security reasons,
55945596
the code point `U+0000` will also be replaced by `U+FFFD`.
55955597

55965598
```````````````````````````````` example
5597-
&#35; &#1234; &#992; &#98765432; &#0;
5599+
&#35; &#1234; &#992; &#0;
55985600
.
5599-
<p># Ӓ Ϡ �</p>
5601+
<p># Ӓ Ϡ �</p>
56005602
````````````````````````````````
56015603

56025604

56035605
[Hexadecimal numeric character
56045606
references](@) consist of `&#` +
5605-
either `X` or `x` + a string of 1-8 hexadecimal digits + `;`.
5607+
either `X` or `x` + a string of 1-6 hexadecimal digits + `;`.
56065608
They too are parsed as the corresponding Unicode character (this
56075609
time specified with a hexadecimal numeral instead of decimal).
56085610

@@ -5617,9 +5619,13 @@ Here are some nonentities:
56175619

56185620
```````````````````````````````` example
56195621
&nbsp &x; &#; &#x;
5622+
&#987654321;
5623+
&#abcdef0;
56205624
&ThisIsNotDefined; &hi?;
56215625
.
56225626
<p>&amp;nbsp &amp;x; &amp;#; &amp;#x;
5627+
&amp;#987654321;
5628+
&amp;#abcdef0;
56235629
&amp;ThisIsNotDefined; &amp;hi?;</p>
56245630
````````````````````````````````
56255631

@@ -6675,6 +6681,17 @@ cannot form emphasis if the sum of the lengths of
66756681
the delimiter runs containing the opening and
66766682
closing delimiters is a multiple of 3.
66776683

6684+
6685+
For the same reason, we don't get two consecutive
6686+
emphasis sections in this example:
6687+
6688+
```````````````````````````````` example
6689+
*foo**bar*
6690+
.
6691+
<p><em>foo**bar</em></p>
6692+
````````````````````````````````
6693+
6694+
66786695
The same condition ensures that the following
66796696
cases are all strong emphasis nested inside
66806697
emphasis, even when the interior spaces are
@@ -7237,7 +7254,7 @@ following rules apply:
72377254
A [link destination](@) consists of either
72387255

72397256
- a sequence of zero or more characters between an opening `<` and a
7240-
closing `>` that contains no spaces, line breaks, or unescaped
7257+
closing `>` that contains no line breaks or unescaped
72417258
`<` or `>` characters, or
72427259

72437260
- a nonempty sequence of characters that does not include
@@ -7308,23 +7325,23 @@ Both the title and the destination may be omitted:
73087325
<p><a href="">link</a></p>
73097326
````````````````````````````````
73107327

7311-
7312-
The destination cannot contain spaces or line breaks,
7313-
even if enclosed in pointy brackets:
7328+
The destination can only contain spaces if it is
7329+
enclosed in pointy brackets:
73147330

73157331
```````````````````````````````` example
73167332
[link](/my uri)
73177333
.
73187334
<p>[link](/my uri)</p>
73197335
````````````````````````````````
73207336

7321-
73227337
```````````````````````````````` example
73237338
[link](</my uri>)
73247339
.
7325-
<p>[link](&lt;/my uri&gt;)</p>
7340+
<p><a href="/my%20uri">link</a></p>
73267341
````````````````````````````````
73277342

7343+
The destination cannot contain line breaks,
7344+
even if enclosed in pointy brackets:
73287345

73297346
```````````````````````````````` example
73307347
[link](foo
@@ -7334,7 +7351,6 @@ bar)
73347351
bar)</p>
73357352
````````````````````````````````
73367353

7337-
73387354
```````````````````````````````` example
73397355
[link](<foo
73407356
bar>)

0 commit comments

Comments
 (0)