diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-07-13 11:40:57 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-07-13 11:40:57 -0700 |
commit | fb737bd9dfe1aa03767fe01fc1d28ed46652158b (patch) | |
tree | dcb1e551b78ee050aeea544daea068789ae5a0da /test | |
parent | 005d6d07cba0cb7fe17fd2148791bbfd382defcf (diff) |
Updated spec.
Diffstat (limited to 'test')
-rw-r--r-- | test/spec.txt | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/test/spec.txt b/test/spec.txt index 6a7c658..4c3de7a 100644 --- a/test/spec.txt +++ b/test/spec.txt @@ -3621,17 +3621,19 @@ 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]: 1. **Basic case.** If a sequence of lines *Ls* constitute a sequence of blocks *Bs* starting with a [non-whitespace character] and not separated from each other by more than one blank line, and *M* is a list - marker of width *W* followed by 0 < *N* < 5 spaces, then the result + marker of width *W* followed by 1 ≤ *N* ≤ 4 spaces, then the result of prepending *M* and the following spaces to the first line of *Ls*, and indenting subsequent lines of *Ls* by *W + N* spaces, is a list item with *Bs* as its contents. The type of the list item @@ -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> ```````````````````````````````` |