From 5c544db005b6036c8d29769cb913c45e626b6235 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 24 Mar 2018 12:22:08 -0700 Subject: Fix tests where list items are indented 4+ spaces. The tests did not accord with the spec here; these lines should be continuation lines (if no blank space) or indented code blocks (if blank space). Closes #497. --- spec.txt | 55 +++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 47 insertions(+), 8 deletions(-) diff --git a/spec.txt b/spec.txt index 08ce0a5..5e782f3 100644 --- a/spec.txt +++ b/spec.txt @@ -5049,11 +5049,9 @@ item: - b - c - d - - e - - f - - g - - h -- i + - e + - f +- g . ```````````````````````````````` @@ -5074,7 +5070,7 @@ item: 2. b - 3. c + 3. c .
  1. @@ -5089,6 +5085,49 @@ item:
```````````````````````````````` +Note, however, that list items may not be indented more than +three spaces. Here `- e` is treated as a paragraph continuation +line, because it is indented more than three spaces: + +```````````````````````````````` example +- a + - b + - c + - d + - e +. + +```````````````````````````````` + +And here, `3. c` is treated as in indented code block, +because it is indented four spaces and preceded by a +blank line. + +```````````````````````````````` example +1. a + + 2. b + + 3. c +. +
    +
  1. +

    a

    +
  2. +
  3. +

    b

    +
  4. +
+
3. c
+
+```````````````````````````````` + This is a loose list, because there is a blank line between two of the list items: -- cgit v1.2.3