diff --git a/spec.txt b/spec.txt index f9305554..1f6a81ed 100644 --- a/spec.txt +++ b/spec.txt @@ -3194,9 +3194,12 @@ with a following space, or (b) a single character `>` not followed by a space. The following rules define [block quotes]: 1. **Basic case.** If a string of lines *Ls* constitute a sequence - of blocks *Bs*, then the result of prepending a [block quote + of blocks *Bs*, then the result of prepending the same [block quote marker] to the beginning of each line in *Ls* - is a [block quote](#block-quotes) containing *Bs*. + is a [block quote](#block-quotes) containing *Bs*. If some lines in *Ls* + are [blank lines](@), then any block quote marker may be used on these + blank lines without affecting the interpretation of which block quote + marker was prepended. 2. **Laziness.** If a string of lines *Ls* constitute a [block quote](#block-quotes) with contents *Bs*, then the result of deleting @@ -3243,6 +3246,84 @@ baz
```````````````````````````````` +Indentation is determined by the shortest marker (on a non-blank line): + +```````````````````````````````` example +>- - asdf +> +> - sdfg +. +++```````````````````````````````` + + +The following is equivalent to the above (but now using the longer marker): + +```````````````````````````````` example +> - - asdf +> +> - sdfg +. ++
+- +
++
+- +
+asdf
+- +
+sdfg
+
++```````````````````````````````` + + +List within a block quote, with the first item indented by three spaces: + +```````````````````````````````` example +> 1. a +>2. b +. ++
+- +
++
+- +
+asdf
+- +
+sdfg
+
++```````````````````````````````` + + +The shortest marker might not occur on the first line, meaning four spaces is too many: +```````````````````````````````` example +> 1. a +>2. b +. ++
+- a
+- b
+
++```````````````````````````````` + + The `>` characters can be indented 1-3 spaces: ```````````````````````````````` example+1. a +
+
+- b
+