summaryrefslogtreecommitdiff
path: root/spec.txt
diff options
context:
space:
mode:
Diffstat (limited to 'spec.txt')
-rw-r--r--spec.txt40
1 files changed, 28 insertions, 12 deletions
diff --git a/spec.txt b/spec.txt
index 6df9078..2366163 100644
--- a/spec.txt
+++ b/spec.txt
@@ -4547,28 +4547,28 @@ The following rules define emphasis and strong emphasis:
2. A single `_` character [can open emphasis] iff
it is part of a [left-flanking delimiter run]
- and is not preceded by an ASCII alphanumeric character.
+ and not part of a [right-flanking delimiter run].
3. A single `*` character [can close emphasis](@can-close-emphasis)
iff it is part of a [right-flanking delimiter run].
4. A single `_` character [can close emphasis]
- iff it is part of a [right-flanking delimiter run].
- and it is not followed by an ASCII alphanumeric character.
+ iff it is part of a [right-flanking delimiter run]
+ and not part of a [left-flanking delimiter run].
5. A double `**` [can open strong emphasis](@can-open-strong-emphasis)
iff it is part of a [left-flanking delimiter run].
6. A double `__` [can open strong emphasis]
iff it is part of a [left-flanking delimiter run]
- and is not preceded by an ASCII alphanumeric character.
+ and not part of a [right-flanking delimiter run].
7. A double `**` [can close strong emphasis](@can-close-strong-emphasis)
iff it is part of a [right-flanking delimiter run].
8. A double `__` [can close strong emphasis]
iff it is part of a [right-flanking delimiter run]
- and is not followed by an ASCII alphanumeric character.
+ and not part of a [left-flanking delimiter run].
9. Emphasis begins with a delimiter that [can open emphasis] and ends
with a delimiter that [can close emphasis], and that uses the same
@@ -4701,7 +4701,7 @@ a_"foo"_
<p>a_&quot;foo&quot;_</p>
.
-Emphasis with `_` is not allowed inside ASCII words:
+Emphasis with `_` is not allowed inside words:
.
foo_bar_
@@ -4715,12 +4715,28 @@ foo_bar_
<p>5_6_78</p>
.
-But it is permitted inside non-ASCII words:
-
.
пристаням_стремятся_
.
-<p>пристаням<em>стремятся</em></p>
+<p>пристаням_стремятся_</p>
+.
+
+Here `_` does not generate emphasis, because the first delimiter run
+is right-flanking and the second left-flanking:
+
+.
+aa_"bb"_cc
+.
+<p>aa_&quot;bb&quot;_cc</p>
+.
+
+Here there is no emphasis, because the delimiter runs are
+both left- and right-flanking:
+
+.
+"aa"_"bb"_"cc"
+.
+<p>&quot;aa&quot;_&quot;bb&quot;_&quot;cc&quot;</p>
.
Rule 3:
@@ -4810,7 +4826,7 @@ _foo_bar
.
_пристаням_стремятся
.
-<p><em>пристаням</em>стремятся</p>
+<p>_пристаням_стремятся</p>
.
.
@@ -4897,7 +4913,7 @@ foo__bar__
.
пристаням__стремятся__
.
-<p>пристаням<strong>стремятся</strong></p>
+<p>пристаням__стремятся__</p>
.
.
@@ -5000,7 +5016,7 @@ __foo__bar
.
__пристаням__стремятся
.
-<p><strong>пристаням</strong>стремятся</p>
+<p>__пристаням__стремятся</p>
.
.