@@ -1922,9 +1922,11 @@ bar
1922
1922
1923
1923
1924
1924
An [info string] can be provided after the opening code fence.
1925
- Opening and closing spaces will be stripped, and the first word, prefixed
1926
- with `language-`, is used as the value for the `class` attribute of the
1927
- `code` element within the enclosing `pre` element.
1925
+ Although this spec doesn't mandate any particular treatment of
1926
+ the info string, the first word is typically used to specify
1927
+ the language of the code block. In HTML output, the language is
1928
+ normally indicated by adding a class to the `code` element consisting
1929
+ of `language-` followed by the language name.
1928
1930
1929
1931
```````````````````````````````` example
1930
1932
```ruby
@@ -6107,7 +6109,8 @@ The following rules define emphasis and strong emphasis:
6107
6109
[delimiter runs]. If one of the delimiters can both
6108
6110
open and close emphasis, then the sum of the lengths of the
6109
6111
delimiter runs containing the opening and closing delimiters
6110
- must not be a multiple of 3.
6112
+ must not be a multiple of 3 unless both lengths are
6113
+ multiples of 3.
6111
6114
6112
6115
10. Strong emphasis begins with a delimiter that
6113
6116
[can open strong emphasis] and ends with a delimiter that
@@ -6117,7 +6120,8 @@ The following rules define emphasis and strong emphasis:
6117
6120
[delimiter runs]. If one of the delimiters can both open
6118
6121
and close strong emphasis, then the sum of the lengths of
6119
6122
the delimiter runs containing the opening and closing
6120
- delimiters must not be a multiple of 3.
6123
+ delimiters must not be a multiple of 3 unless both lengths
6124
+ are multiples of 3.
6121
6125
6122
6126
11. A literal `*` character cannot occur at the beginning or end of
6123
6127
`*`-delimited emphasis or `**`-delimited strong emphasis, unless it
@@ -6736,7 +6740,8 @@ is precluded by the condition that a delimiter that
6736
6740
can both open and close (like the `*` after `foo`)
6737
6741
cannot form emphasis if the sum of the lengths of
6738
6742
the delimiter runs containing the opening and
6739
- closing delimiters is a multiple of 3.
6743
+ closing delimiters is a multiple of 3 unless
6744
+ both lengths are multiples of 3.
6740
6745
6741
6746
6742
6747
For the same reason, we don't get two consecutive
@@ -6776,6 +6781,23 @@ omitted:
6776
6781
````````````````````````````````
6777
6782
6778
6783
6784
+ When the lengths of the interior closing and opening
6785
+ delimiter runs are *both* multiples of 3, though,
6786
+ they can match to create emphasis:
6787
+
6788
+ ```````````````````````````````` example
6789
+ foo***bar***baz
6790
+ .
6791
+ <p>foo<em><strong>bar</strong></em>baz</p>
6792
+ ````````````````````````````````
6793
+
6794
+ ```````````````````````````````` example
6795
+ foo******bar*********baz
6796
+ .
6797
+ <p>foo<strong><strong><strong>bar</strong></strong></strong>***baz</p>
6798
+ ````````````````````````````````
6799
+
6800
+
6779
6801
Indefinite levels of nesting are possible:
6780
6802
6781
6803
```````````````````````````````` example
0 commit comments