From fb737bd9dfe1aa03767fe01fc1d28ed46652158b Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 13 Jul 2016 11:40:57 -0700 Subject: Updated spec. --- test/spec.txt | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) (limited to 'test') 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: ```````````````````````````````` +However, an empty list item cannot interrupt a paragraph: + +```````````````````````````````` example +foo +* + +foo +1. +. +

foo +*

+

foo +1.

+```````````````````````````````` 4. **Indentation.** If a sequence of lines *Ls* constitutes a list item @@ -6122,10 +6138,8 @@ A newline also counts as whitespace: *foo bar * . -

*foo bar

- +

*foo bar +*

```````````````````````````````` -- cgit v1.2.3