aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-03-24 12:22:08 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-03-24 12:27:19 -0700
commit5c544db005b6036c8d29769cb913c45e626b6235 (patch)
treebb9e9142b0a314c459459f5e624e531a1ae57019
parent975da1fcea8e831dc5a846b8e5718267a9d42377 (diff)
Fix tests where list items are indented 4+ spaces.
The tests did not accord with the spec here; these lines should be continuation lines (if no blank space) or indented code blocks (if blank space). Closes #497.
-rw-r--r--spec.txt55
1 files changed, 47 insertions, 8 deletions
diff --git a/spec.txt b/spec.txt
index 08ce0a5..5e782f3 100644
--- a/spec.txt
+++ b/spec.txt
@@ -5049,11 +5049,9 @@ item:
- b
- c
- d
- - e
- - f
- - g
- - h
-- i
+ - e
+ - f
+- g
.
<ul>
<li>a</li>
@@ -5063,8 +5061,6 @@ item:
<li>e</li>
<li>f</li>
<li>g</li>
-<li>h</li>
-<li>i</li>
</ul>
````````````````````````````````
@@ -5074,7 +5070,7 @@ item:
2. b
- 3. c
+ 3. c
.
<ol>
<li>
@@ -5089,6 +5085,49 @@ item:
</ol>
````````````````````````````````
+Note, however, that list items may not be indented more than
+three spaces. Here `- e` is treated as a paragraph continuation
+line, because it is indented more than three spaces:
+
+```````````````````````````````` example
+- a
+ - b
+ - c
+ - d
+ - e
+.
+<ul>
+<li>a</li>
+<li>b</li>
+<li>c</li>
+<li>d
+- e</li>
+</ul>
+````````````````````````````````
+
+And here, `3. c` is treated as in indented code block,
+because it is indented four spaces and preceded by a
+blank line.
+
+```````````````````````````````` example
+1. a
+
+ 2. b
+
+ 3. c
+.
+<ol>
+<li>
+<p>a</p>
+</li>
+<li>
+<p>b</p>
+</li>
+</ol>
+<pre><code>3. c
+</code></pre>
+````````````````````````````````
+
This is a loose list, because there is a blank line between
two of the list items: