|
@ -948,19 +948,18 @@ use backslash escapes: |
|
|
|
|
|
|
|
|
## Indented code blocks |
|
|
## Indented code blocks |
|
|
|
|
|
|
|
|
An [indented code block](@indented-code-block) is composed of one or more |
|
|
An [indented code block](@indented-code-block) |
|
|
|
|
|
is composed of one or more |
|
|
[indented chunks](#indented-chunk) separated by blank lines. |
|
|
[indented chunks](#indented-chunk) separated by blank lines. |
|
|
An [indented chunk](@indented-chunk) is a sequence of non-blank lines, |
|
|
An [indented chunk](@indented-chunk) |
|
|
each indented four or more spaces. The contents of the code block are |
|
|
is a sequence of non-blank lines, each indented four or more |
|
|
|
|
|
spaces. An indented code block cannot interrupt a paragraph, so |
|
|
|
|
|
if it occurs before or after a paragraph, there must be an |
|
|
|
|
|
intervening blank line. The contents of the code block are |
|
|
the literal contents of the lines, including trailing newlines, |
|
|
the literal contents of the lines, including trailing newlines, |
|
|
minus four spaces of indentation. An indented code block has no |
|
|
minus four spaces of indentation. An indented code block has no |
|
|
attributes. |
|
|
attributes. |
|
|
|
|
|
|
|
|
An indented code block cannot interrupt a paragraph, so there must be |
|
|
|
|
|
a blank line between a paragraph and a following indented code block. |
|
|
|
|
|
(A blank line is not needed, however, between a code block and a following |
|
|
|
|
|
paragraph.) |
|
|
|
|
|
|
|
|
|
|
|
. |
|
|
. |
|
|
a simple |
|
|
a simple |
|
|
indented code block |
|
|
indented code block |
|
@ -4355,8 +4354,8 @@ The following rules capture all of these patterns, while allowing |
|
|
for efficient parsing strategies that do not backtrack: |
|
|
for efficient parsing strategies that do not backtrack: |
|
|
|
|
|
|
|
|
1. A single `*` character [can open emphasis](@can-open-emphasis) |
|
|
1. A single `*` character [can open emphasis](@can-open-emphasis) |
|
|
iff it is not followed by whitespace. (For these purposes, |
|
|
iff it is not followed by |
|
|
any unicode space character counts as whitespace.) |
|
|
whitespace. |
|
|
|
|
|
|
|
|
2. A single `_` character [can open emphasis](#can-open-emphasis) iff |
|
|
2. A single `_` character [can open emphasis](#can-open-emphasis) iff |
|
|
it is not followed by whitespace and it is not preceded by an |
|
|
it is not followed by whitespace and it is not preceded by an |
|
@ -4378,7 +4377,8 @@ for efficient parsing strategies that do not backtrack: |
|
|
ASCII alphanumeric character. |
|
|
ASCII alphanumeric character. |
|
|
|
|
|
|
|
|
7. A double `**` [can close strong emphasis](@can-close-strong-emphasis) |
|
|
7. A double `**` [can close strong emphasis](@can-close-strong-emphasis) |
|
|
iff it is not preceded by whitespace. |
|
|
iff it is not preceded by |
|
|
|
|
|
whitespace. |
|
|
|
|
|
|
|
|
8. A double `__` [can close strong emphasis](#can-close-strong-emphasis) |
|
|
8. A double `__` [can close strong emphasis](#can-close-strong-emphasis) |
|
|
iff it is not preceded by whitespace and it is not followed by an |
|
|
iff it is not preceded by whitespace and it is not followed by an |
|
@ -4458,14 +4458,6 @@ a * foo bar* |
|
|
<p>a * foo bar*</p> |
|
|
<p>a * foo bar*</p> |
|
|
. |
|
|
. |
|
|
|
|
|
|
|
|
Unicode nonbreaking spaces count as whitespace, too: |
|
|
|
|
|
|
|
|
|
|
|
. |
|
|
|
|
|
* a * |
|
|
|
|
|
. |
|
|
|
|
|
<p>* a *</p> |
|
|
|
|
|
. |
|
|
|
|
|
|
|
|
|
|
|
Intraword emphasis with `*` is permitted: |
|
|
Intraword emphasis with `*` is permitted: |
|
|
|
|
|
|
|
|
. |
|
|
. |
|
|