aboutsummaryrefslogtreecommitdiff
path: root/spec.txt
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-31 20:06:21 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-31 20:06:21 -0800
commitabd5bbc7eba04153fc997e4d5a321cd75600773c (patch)
tree8416a94798388c7725384cca4be59f229c4297c3 /spec.txt
parent64417f709abefe7bdd5ffd3cb45ad94ddf12a543 (diff)
Added some cases with newline whitespace around emphasis open delimiter.
See #282.
Diffstat (limited to 'spec.txt')
-rw-r--r--spec.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/spec.txt b/spec.txt
index 94931db..2a45d3f 100644
--- a/spec.txt
+++ b/spec.txt
@@ -4759,6 +4759,18 @@ whitespace:
<p>*foo bar *</p>
.
+A newline also counts as whitespace:
+
+.
+*foo bar
+*
+.
+<p>*foo bar</p>
+<ul>
+<li></li>
+</ul>
+.
+
This is not emphasis, because the second `*` is
preceded by punctuation and followed by an alphanumeric
(hence it is not part of a [right-flanking delimiter run]:
@@ -4887,6 +4899,15 @@ __ foo bar__
<p>__ foo bar__</p>
.
+A newline counts as whitespace:
+.
+__
+foo bar__
+.
+<p>__
+foo bar__</p>
+.
+
This is not strong emphasis, because the opening `__` is preceded
by an alphanumeric and followed by punctuation: