Foo
bar baz
The spaces after the >
characters can be omitted:
Bar
bar baz
The >
characters can be indented 1-3 spaces:
Baz
bar baz
Four spaces gives us a code block:
> # Qux
> bar
> baz
The Laziness clause allows us to omit the >
before paragraph continuation text:
Quux
bar baz
A block quote can contain some lazy and some non-lazy continuation lines:
bar baz foo
Laziness only applies to lines that would have been continuations of paragraphs had they been prepended with block quote markers. For example, the >
cannot be omitted in the second line of
foo
without changing the meaning.
Similarly, if we omit the `>` in the second line then the block quote ends after the first line:
> - foo
- bar
For the same reason, we can’t omit the >
in front of subsequent lines of an indented or fenced code block:
foo
bar
> ```
foo
```
<blockquote>
<pre><code></code></pre>
</blockquote>
<p>foo</p>
<pre><code></code></pre>
> foo
- bar
<blockquote>
<p>foo
- bar</p>
</blockquote>
A block quote can be empty:
A block quote can have initial or final blank lines:
foo
A blank line always separates block quotes:
foo
bar
Consecutiveness means that if we put these block quotes together, we get a single block quote:
foo bar
To get a block quote with two paragraphs, use:
foo
bar
Block quotes can interrupt paragraphs:
foo
bar
In general, blank lines are not needed before or after block quotes:
aaa
bbb
However, because of laziness, a blank line is needed between a block quote and a following paragraph:
bar baz
bar
baz
bar
baz
It is a consequence of the Laziness rule that any number of initial >
s may be omitted on a continuation line of a nested block quote:
foo bar
foo bar baz
When including an indented code block in a block quote, remember that the block quote marker includes both the >
and a following space. So five spaces are needed after the >
:
code
not code