aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-12-22 15:36:50 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-12-22 15:36:50 -0800
commit5dd4de4e680683ee0bc3d02f2a825fba90135b2e (patch)
tree8acc2b9923b67ef25addf6095b965ce80b47d49c
parent444e83fced02401732305b00c2efb9592e1b6d9e (diff)
Small adjustment to new test case for indented code in list.
Reworded the description, added a case with two blank lines.
-rw-r--r--spec.txt26
1 files changed, 23 insertions, 3 deletions
diff --git a/spec.txt b/spec.txt
index c8685dd..a2864c2 100644
--- a/spec.txt
+++ b/spec.txt
@@ -3423,9 +3423,10 @@ A list item may contain any kind of block:
</ol>
.
-A list item that contains a code block will preserve empty lines
-within the code block verbatim. Whereas, some current Markdown
-implementations add an extra blank line in the contained code block.
+A list item that contains an indented code block will preserve
+empty lines within the code block verbatim, unless there are two
+or more empty lines in a row (since as described above, two
+blank lines end the list):
.
- Foo
@@ -3444,6 +3445,25 @@ baz
</ul>
.
+.
+- Foo
+
+ bar
+
+
+ baz
+.
+<ul>
+<li>
+<p>Foo</p>
+<pre><code>bar
+</code></pre>
+</li>
+</ul>
+<pre><code> baz
+</code></pre>
+.
+
Note that ordered list start numbers must be nine digits or less:
.