diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-10-07 22:21:03 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-10-07 22:21:03 -0700 |
commit | 3d99baba064091f74b9da78eaed38fcf4875af46 (patch) | |
tree | 81805e91f7e7ed965e53b37ec730b00b2efc3773 | |
parent | c0c33f83326927d515a973aa7afdd26bb194e0c8 (diff) |
Adjusted tests for new js parser.
-rw-r--r-- | spec.txt | 26 |
1 files changed, 22 insertions, 4 deletions
@@ -4525,6 +4525,24 @@ __foo _bar_ baz__ <p><strong>foo <em>bar</em> baz</strong></p> . +But note: + +. +*foo**bar**baz* +. +<p><em>foo</em><em>bar</em><em>baz</em></p> +. + +. +**foo*bar*baz** +. +<p><em><em>foo</em>bar</em>baz**</p> +. + +The difference is that in the two preceding cases, +the internal delimiters [can close emphasis](#can-close-emphasis), +while in the cases with spaces, they cannot. + Note that you cannot nest emphasis directly inside emphasis using the same delimeter, or strong emphasis directly inside strong emphasis: @@ -4606,7 +4624,7 @@ However, a string of four or more `****` can never close emphasis: <p>*foo****</p> . -Note that there are some asymmetries here: +We retain symmetry in these cases: . *foo** @@ -4614,7 +4632,7 @@ Note that there are some asymmetries here: **foo* . <p><em>foo</em>*</p> -<p>**foo*</p> +<p>*<em>foo</em></p> . . @@ -4637,7 +4655,7 @@ More cases with mismatched delimiters: . ***foo* . -<p>***foo*</p> +<p>**<em>foo</em></p> . . @@ -4649,7 +4667,7 @@ More cases with mismatched delimiters: . ***foo** . -<p>***foo**</p> +<p>*<strong>foo</strong></p> . . |