diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-07-25 21:51:43 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-07-25 21:51:43 -0700 |
commit | e70a8222d05f33efe07881ea4102cf4952165eb7 (patch) | |
tree | 3cf31e51d022bde801bd3a0da8df3f8cfa96e38c | |
parent | 61355b3887de977e2816a1ead77173f9d31c937c (diff) |
Added test case clarifying laziness in block quotes.
See jgm/commonmark.js#60.
-rw-r--r-- | spec.txt | 32 |
1 files changed, 28 insertions, 4 deletions
@@ -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: . |