From 41b3307db15bb02122223b8a16afeec54a9a69d7 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 11 Jul 2016 22:46:07 +0100 Subject: Updated spec. --- test/spec.txt | 129 ++++++++++------------------------------------------------ 1 file changed, 21 insertions(+), 108 deletions(-) diff --git a/test/spec.txt b/test/spec.txt index 8b29c56..6a7c658 100644 --- a/test/spec.txt +++ b/test/spec.txt @@ -3813,66 +3813,20 @@ any following content, so these are not list items: ```````````````````````````````` -A list item may not contain blocks that are separated by more than -one blank line. Thus, two blank lines will end a list, unless the -two blanks are contained in a [fenced code block]. +A list item may contain blocks that are separated by more than +one blank line. ```````````````````````````````` example -- foo - - bar - - foo bar - -- ``` - foo - - - bar - ``` - -- baz - - + ``` - foo - - - bar - ``` . -

bar

- ```````````````````````````````` @@ -3905,15 +3859,14 @@ A list item may contain any kind of block: A list item that contains an indented code block will preserve -empty lines within the code block verbatim, unless there are two -or more empty lines in a row (since as described above, two -blank lines end the list): +empty lines within the code block verbatim. ```````````````````````````````` example - Foo bar + baz . -```````````````````````````````` - -```````````````````````````````` example -- Foo - - bar - - - baz -. - -
  baz
-
```````````````````````````````` - Note that ordered list start numbers must be nine digits or less: ```````````````````````````````` example @@ -4936,8 +4869,7 @@ The number of windows in my house is but this rule should prevent most spurious list captures. -There can be blank lines between items, but two blank lines end -a list: +There can be any number of blank lines between items: ```````````````````````````````` example - foo @@ -4954,36 +4886,12 @@ a list:
  • bar

  • - - -```````````````````````````````` - - -As illustrated above in the section on [list items], -two blank lines between blocks *within* a list item will also end a -list: - -```````````````````````````````` example -- foo - - - bar -- baz -. - -

    bar

    - ```````````````````````````````` - -Indeed, two blank lines will end *all* containing lists: - ```````````````````````````````` example - foo - bar @@ -4997,26 +4905,28 @@ Indeed, two blank lines will end *all* containing lists: -
      bim
    -
    ```````````````````````````````` -Thus, two blank lines can be used to separate consecutive lists of -the same type, or to separate a list from an indented code block -that would otherwise be parsed as a subparagraph of the final list -item: +To separate consecutive lists of the same type, or to separate a +list from an indented code block that would otherwise be parsed +as a subparagraph of the final list item, you can insert a blank HTML +comment: ```````````````````````````````` example - foo - bar + - baz - bim @@ -5025,6 +4935,7 @@ item:
  • foo
  • bar
  • + +
    code
     
    ```````````````````````````````` -- cgit v1.2.3