From 02ae86a2c15bc469004d86a68760014dfaf94e33 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 13 Jul 2016 11:40:12 -0700 Subject: Empty list items cannot interrupt a paragraph. This removes an ambiguity between setext headers and lists in cases like foo - --- spec.txt | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) (limited to 'spec.txt') 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: ```````````````````````````````` +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