From 9c409825ec625e058a7caa19afcbbf5c0134f013 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 20 Nov 2014 09:07:14 -0800 Subject: Reformatted some spec examples to match output of cmark. This way cmark passes tests with `--no-normalize`. See #161. --- spec.txt | 282 +++++++++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 193 insertions(+), 89 deletions(-) (limited to 'spec.txt') diff --git a/spec.txt b/spec.txt index 1cea820..0693ba4 100644 --- a/spec.txt +++ b/spec.txt @@ -468,7 +468,8 @@ If you want a horizontal rule in a list item, use a different bullet: . . @@ -2530,13 +2531,15 @@ and the same contents as *Ls*: > A block quote. .
    -
  1. A paragraph +

  2. +

    A paragraph with two lines.

    indented code
     

    A block quote.

    -
  3. + +
. @@ -2568,8 +2571,10 @@ put under the list item: two . . @@ -2591,8 +2596,10 @@ put under the list item: two . . @@ -2612,8 +2619,10 @@ this example:
    -
  1. one

    -

    two

  2. +
  3. +

    one

    +

    two

    +
@@ -2665,17 +2674,23 @@ two blanks are contained in a [fenced code block](#fenced-code-block). ``` .

bar

. @@ -2693,13 +2708,15 @@ A list item may contain any kind of block: > bam .
    -
  1. foo

    +
  2. +

    foo

    bar
     

    baz

    bam

    -
  3. + +
. @@ -2725,9 +2742,11 @@ In the following case that is 6 spaces: bar . . @@ -2739,9 +2758,11 @@ And in this case it is 11 spaces: bar .
    -
  1. foo

    +
  2. +

    foo

    bar
    -
  3. + +
. @@ -2771,11 +2792,13 @@ paragraph more code .
    -
  1. indented code
    +
  2. +
    indented code
     

    paragraph

    more code
    -
  3. +
    +
. @@ -2790,11 +2813,13 @@ inside the code block: more code .
    -
  1.  indented code
    +
  2. +
     indented code
     

    paragraph

    more code
    -
  3. +
    +
. @@ -2836,8 +2861,10 @@ the above case: bar . . @@ -2859,13 +2886,15 @@ Indented one space: > A block quote. .
    -
  1. A paragraph +

  2. +

    A paragraph with two lines.

    indented code
     

    A block quote.

    -
  3. + +
. @@ -2880,13 +2909,15 @@ Indented two spaces: > A block quote. .
    -
  1. A paragraph +

  2. +

    A paragraph with two lines.

    indented code
     

    A block quote.

    -
  3. + +
. @@ -2901,13 +2932,15 @@ Indented three spaces: > A block quote. .
    -
  1. A paragraph +

  2. +

    A paragraph with two lines.

    indented code
     

    A block quote.

    -
  3. + +
. @@ -2952,13 +2985,15 @@ with two lines. > A block quote. .
    -
  1. A paragraph +

  2. +

    A paragraph with two lines.

    indented code
     

    A block quote.

    -
  3. + +
. @@ -2982,10 +3017,12 @@ continued here. .
    -
  1. +
  2. +

    Blockquote continued here.

    -
  3. +
    +
. @@ -2996,10 +3033,12 @@ continued here.

.
    -
  1. +
  2. +

    Blockquote continued here.

    -
  3. +
    +
. @@ -3025,8 +3064,10 @@ So, in this case we need two spaces indent:
  • bar
  • - + + + + . @@ -3054,7 +3095,8 @@ Here we need four, because the list marker is wider:
  • foo
  • + + . @@ -3078,9 +3120,11 @@ A list may be the first block in a list item: - - foo . . @@ -3088,11 +3132,15 @@ A list may be the first block in a list item: 1. - 2. foo .
      -
      • -
        1. +
        2. +
            +
          • +
            1. foo
            2. -
          • -
        3. +
        +
      • +
      +
    . @@ -3127,9 +3175,13 @@ A list item can contain a header: baz . . @@ -3224,11 +3276,13 @@ as the four-space rule demands, rather than a single list, ``` html + ``` @@ -3251,8 +3305,10 @@ as a single list item, with `two` a continuation paragraph: ``` html ``` @@ -3269,8 +3325,10 @@ as ``` html
    ``` @@ -3468,8 +3526,12 @@ a list: - baz . + + + +
      bim
     
    @@ -3553,9 +3617,13 @@ item: code .
    code
     
    @@ -3596,9 +3664,15 @@ two of the list items: - c . . @@ -3611,9 +3685,13 @@ So is this, with a empty second item: * c . . @@ -3629,10 +3707,16 @@ with a blank line between them: - d . . @@ -3644,9 +3728,15 @@ with a blank line between them: - d . . @@ -3663,10 +3753,12 @@ This is a tight list, because the blank lines are in a code block: . . @@ -3685,9 +3777,12 @@ the outer list is tight: +
  • d
  • . @@ -3705,7 +3800,8 @@ block quote:
  • a

    b

    -
  • + +
  • c
  • . @@ -3727,7 +3823,8 @@ are not separated by blank lines:

    b

    c
    -
    + +
  • d
  • . @@ -3750,7 +3847,8 @@ A single-paragraph list is tight:
  • a
  • + + . @@ -3763,11 +3861,13 @@ Here the outer list is loose, the inner list tight: baz . . @@ -3781,16 +3881,20 @@ Here the outer list is loose, the inner list tight: - f . + +
  • +

    d

  • + + . -- cgit v1.2.3