aboutsummaryrefslogtreecommitdiff
path: root/spec.txt
diff options
context:
space:
mode:
authorRobin Stocker <robin@nibor.org>2016-04-04 16:27:51 +1000
committerRobin Stocker <robin@nibor.org>2016-04-05 11:27:00 +1000
commita337b59ec29b60bb0eaca269ae96f61c422865ae (patch)
treead8b3243d34e3bc793396efdf03a41349fd0c73d /spec.txt
parent69f680f01216a87051b020d6706766c7eff52bc2 (diff)
Add example for list item starting with a blank line with spaces
After implementing the changes for the 0.25 spec, all the spec tests were green. But I noticed that my code also counted the spaces on the first line and required the subsequent lines to be indented accordingly. This example catches that possible bug.
Diffstat (limited to 'spec.txt')
-rw-r--r--spec.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec.txt b/spec.txt
index 1a4a7dc..bdaed43 100644
--- a/spec.txt
+++ b/spec.txt
@@ -4080,6 +4080,18 @@ Here are some list items that start with a blank line but are not empty:
</ul>
````````````````````````````````
+When the list item starts with a blank line, the number of spaces
+following the list marker doesn't change the required indentation:
+
+```````````````````````````````` example
+-
+ foo
+.
+<ul>
+<li>foo</li>
+</ul>
+````````````````````````````````
+
A list item can begin with at most one blank line.
In the following example, `foo` is not part of the list