aboutsummaryrefslogtreecommitdiff
path: root/spec.txt
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-07-13 11:40:12 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2016-07-13 11:40:12 -0700
commit02ae86a2c15bc469004d86a68760014dfaf94e33 (patch)
treeb3cba1bb6c9f8c4268ee876957954167c470e8ea /spec.txt
parent84e88cbb22d9220a80e144b15ba4786659f94778 (diff)
Empty list items cannot interrupt a paragraph.
This removes an ambiguity between setext headers and lists in cases like foo -
Diffstat (limited to 'spec.txt')
-rw-r--r--spec.txt30
1 files changed, 22 insertions, 8 deletions
diff --git a/spec.txt b/spec.txt
index 945403f..4c3de7a 100644
--- a/spec.txt
+++ b/spec.txt
@@ -3621,10 +3621,12 @@ An [ordered list marker](@)
is a sequence of 1--9 arabic digits (`0-9`), followed by either a
`.` character or a `)` character. (The reason for the length
limit is that with 10 digits we start seeing integer overflows
-in some browsers.) Exception: In cases where ordered list markers
-interrupt paragraphs---that is, when they occur on a line
-that would otherwise count as [paragraph continuation
-text]---only `1.` and `1)` are allowed.
+in some browsers.) Exception: In cases where ordered list
+markers interrupt paragraphs---that is, when they occur on a
+line that would otherwise count as [paragraph continuation
+text]---list markers must be followed by some content other than
+spaces before the end of the line, and for ordered list markers,
+only `1.` and `1)` are allowed.
The following rules define [list items]:
@@ -4207,6 +4209,20 @@ A list may start or end with an empty list item:
</ul>
````````````````````````````````
+However, an empty list item cannot interrupt a paragraph:
+
+```````````````````````````````` example
+foo
+*
+
+foo
+1.
+.
+<p>foo
+*</p>
+<p>foo
+1.</p>
+````````````````````````````````
4. **Indentation.** If a sequence of lines *Ls* constitutes a list item
@@ -6122,10 +6138,8 @@ A newline also counts as whitespace:
*foo bar
*
.
-<p>*foo bar</p>
-<ul>
-<li></li>
-</ul>
+<p>*foo bar
+*</p>
````````````````````````````````