File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -1584,8 +1584,8 @@ begins with a code fence, indented no more than three spaces.
1584
1584
1585
1585
The line with the opening code fence may optionally contain some text
1586
1586
following the code fence; this is trimmed of leading and trailing
1587
- whitespace and called the [info string](@).
1588
- The [info string] may not contain any backtick
1587
+ whitespace and called the [info string](@). If the [info string] comes
1588
+ after a backtick fence, it may not contain any backtick
1589
1589
characters. (The reason for this restriction is that otherwise
1590
1590
some inline code would be incorrectly interpreted as the
1591
1591
beginning of a fenced code block.)
@@ -1973,6 +1973,18 @@ foo</p>
1973
1973
````````````````````````````````
1974
1974
1975
1975
1976
+ [Info strings] for tilde code blocks can contain backticks and tildes:
1977
+
1978
+ ```````````````````````````````` example
1979
+ ~~~ aa ``` ~~~
1980
+ foo
1981
+ ~~~
1982
+ .
1983
+ <pre><code class="language-aa">foo
1984
+ </code></pre>
1985
+ ````````````````````````````````
1986
+
1987
+
1976
1988
Closing code fences cannot have [info strings]:
1977
1989
1978
1990
```````````````````````````````` example
You can’t perform that action at this time.
0 commit comments