@@ -2612,7 +2612,8 @@ bar
2612
2612
2613
2613
2614
2614
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]:
2616
2617
2617
2618
```````````````````````````````` example
2618
2619
<div>
@@ -2758,8 +2759,8 @@ an indented code block:
2758
2759
2759
2760
Fortunately, blank lines are usually not necessary and can be
2760
2761
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.
2763
2764
2764
2765
## Link reference definitions
2765
2766
@@ -2811,7 +2812,7 @@ them.
2811
2812
2812
2813
```````````````````````````````` example
2813
2814
[Foo bar]:
2814
- <my%20url >
2815
+ <my url >
2815
2816
'title'
2816
2817
2817
2818
[Foo bar]
@@ -4458,9 +4459,10 @@ continued here.</p>
4458
4459
6. **That's all.** Nothing that is not counted as a list item by rules
4459
4460
#1--5 counts as a [list item](#list-items).
4460
4461
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.
4464
4466
4465
4467
So, in this case we need two spaces indent:
4466
4468
@@ -5587,22 +5589,22 @@ references and their corresponding code points.
5587
5589
5588
5590
[Decimal numeric character
5589
5591
references](@)
5590
- consist of `&#` + a string of 1--8 arabic digits + `;`. A
5592
+ consist of `&#` + a string of 1--7 arabic digits + `;`. A
5591
5593
numeric character reference is parsed as the corresponding
5592
5594
Unicode character. Invalid Unicode code points will be replaced by
5593
5595
the REPLACEMENT CHARACTER (`U+FFFD`). For security reasons,
5594
5596
the code point `U+0000` will also be replaced by `U+FFFD`.
5595
5597
5596
5598
```````````````````````````````` example
5597
- # Ӓ Ϡ � &# 0;
5599
+ # Ӓ Ϡ �
5598
5600
.
5599
- <p># Ӓ Ϡ � � </p>
5601
+ <p># Ӓ Ϡ �</p>
5600
5602
````````````````````````````````
5601
5603
5602
5604
5603
5605
[Hexadecimal numeric character
5604
5606
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 + `;`.
5606
5608
They too are parsed as the corresponding Unicode character (this
5607
5609
time specified with a hexadecimal numeral instead of decimal).
5608
5610
@@ -5617,9 +5619,13 @@ Here are some nonentities:
5617
5619
5618
5620
```````````````````````````````` example
5619
5621
  &x; &#; &#x;
5622
+ �
5623
+ &#abcdef0;
5620
5624
&ThisIsNotDefined; &hi?;
5621
5625
.
5622
5626
<p>&nbsp &x; &#; &#x;
5627
+ &#987654321;
5628
+ &#abcdef0;
5623
5629
&ThisIsNotDefined; &hi?;</p>
5624
5630
````````````````````````````````
5625
5631
@@ -6675,6 +6681,17 @@ cannot form emphasis if the sum of the lengths of
6675
6681
the delimiter runs containing the opening and
6676
6682
closing delimiters is a multiple of 3.
6677
6683
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
+
6678
6695
The same condition ensures that the following
6679
6696
cases are all strong emphasis nested inside
6680
6697
emphasis, even when the interior spaces are
@@ -7237,7 +7254,7 @@ following rules apply:
7237
7254
A [link destination](@) consists of either
7238
7255
7239
7256
- 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
7241
7258
`<` or `>` characters, or
7242
7259
7243
7260
- a nonempty sequence of characters that does not include
@@ -7308,23 +7325,23 @@ Both the title and the destination may be omitted:
7308
7325
<p><a href="">link</a></p>
7309
7326
````````````````````````````````
7310
7327
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:
7314
7330
7315
7331
```````````````````````````````` example
7316
7332
[link](/my uri)
7317
7333
.
7318
7334
<p>[link](/my uri)</p>
7319
7335
````````````````````````````````
7320
7336
7321
-
7322
7337
```````````````````````````````` example
7323
7338
[link](</my uri>)
7324
7339
.
7325
- <p>[link](< /my uri>) </p>
7340
+ <p><a href=" /my%20uri">link</a> </p>
7326
7341
````````````````````````````````
7327
7342
7343
+ The destination cannot contain line breaks,
7344
+ even if enclosed in pointy brackets:
7328
7345
7329
7346
```````````````````````````````` example
7330
7347
[link](foo
@@ -7334,7 +7351,6 @@ bar)
7334
7351
bar)</p>
7335
7352
````````````````````````````````
7336
7353
7337
-
7338
7354
```````````````````````````````` example
7339
7355
[link](<foo
7340
7356
bar>)
0 commit comments