aboutsummaryrefslogtreecommitdiff
path: root/spec.txt
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-07-25 21:51:43 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-07-25 21:51:43 -0700
commite70a8222d05f33efe07881ea4102cf4952165eb7 (patch)
tree3cf31e51d022bde801bd3a0da8df3f8cfa96e38c /spec.txt
parent61355b3887de977e2816a1ead77173f9d31c937c (diff)
Added test case clarifying laziness in block quotes.
See jgm/commonmark.js#60.
Diffstat (limited to 'spec.txt')
-rw-r--r--spec.txt32
1 files changed, 28 insertions, 4 deletions
diff --git a/spec.txt b/spec.txt
index ef645e7..3aa4ee4 100644
--- a/spec.txt
+++ b/spec.txt
@@ -2835,8 +2835,8 @@ foo</p>
.
Laziness only applies to lines that would have been continuations of
-paragraphs had they been prepended with `>`. For example, the
-`>` cannot be omitted in the second line of
+paragraphs had they been prepended with [block quote marker]s.
+For example, the `> ` cannot be omitted in the second line of
``` markdown
> foo
@@ -2855,7 +2855,7 @@ without changing the meaning:
<hr />
.
-Similarly, if we omit the `>` in the second line of
+Similarly, if we omit the `> ` in the second line of
``` markdown
> - foo
@@ -2878,7 +2878,7 @@ then the block quote ends after the first line:
</ul>
.
-For the same reason, we can't omit the `>` in front of
+For the same reason, we can't omit the `> ` in front of
subsequent lines of an indented or fenced code block:
.
@@ -2905,6 +2905,30 @@ foo
<pre><code></code></pre>
.
+Note that in the following case, we have a paragraph
+continuation line:
+
+.
+> foo
+ - bar
+.
+<blockquote>
+<p>foo
+- bar</p>
+</blockquote>
+.
+
+To see why, note that in
+
+```markdown
+> foo
+> - bar
+```
+
+the `- bar` is indented too far to start a list, and can't
+be an indented code block because indented code blocks cannot
+interrupt paragraphs, so it is a [paragraph continuation line].
+
A block quote can be empty:
.