Multi-line Blockquotes
Simple container
$ comrak -e multiline-block-quotes -t commonmark -t xml
content
content
content
Can contain block elements
$ comrak -e multiline-block-quotes -t commonmark -t xml
heading
heading
heading
Ending marker can be longer
$ comrak -e multiline-block-quotes -t commonmark -t xml
hello world
normal
hello world
normal
hello world
normal
Nested blockquotes
$ comrak -e multiline-block-quotes -t commonmark -t xml
foo
foo
foo
Incorrectly nested blockquotes
$ comrak -e multiline-block-quotes -t commonmark -t xml
this block is closed with 5 markers below
auto-closed blocks
this block is closed with 5 markers below
auto-closed blocks
this block is closed with 5 markers below
auto-closed blocks
Marker can be indented up to 3 spaces
$ comrak -e multiline-block-quotes -t commonmark -t xml
first-level blockquote
second-level blockquote
regular paragraph
first-level blockquote
second-level blockquote
regular paragraph
first-level blockquote
second-level blockquote
regular paragraph
Fours spaces makes it a code block
$ comrak -e multiline-block-quotes -t commonmark -t xml
>>>
content
>>>
>>>
content
>>>
>>>
content
>>>
Detection of embedded 4 spaces code block starts in the column the blockquote starts, not from the beginning of the line.
$ comrak -e multiline-block-quotes -t commonmark -t xml
code block
code block
code block
$ comrak -e multiline-block-quotes -t commonmark -t xml
content
code block
content
code block
content
code block
Closing marker can’t have text on the same line
$ comrak -e multiline-block-quotes -t commonmark -t xml
foo
arg=123
foo
arg=123
foo
arg=123
Blockquotes self-close at the end of the document
$ comrak -e multiline-block-quotes -t commonmark -t xml
foo
foo
foo
They should terminate paragraphs
$ comrak -e multiline-block-quotes -t commonmark -t xml
blah blah
content
blah blah
content
blah blah
content
They can be nested in lists
$ comrak -e multiline-block-quotes -t commonmark -t xml
- -
-
- foo
foo
-
foo
Or in blockquotes
$ comrak -e multiline-block-quotes -t commonmark -t xml
foo
bar baz
foo
bar
baz
foo
bar
baz
List indentation
$ comrak -e multiline-block-quotes -t commonmark -t xml
-
-
-
foo bar
-
foo bar
foo
bar
foo
bar
-
-
foo
bar
foo
bar
Ignored inside code blocks:
$ comrak -e multiline-block-quotes -t commonmark -t xml
# Code
>>>
# Code
>>>
# Code
# Code
>>>
# Code
>>>
# Code
# Code
>>>
# Code
>>>
# Code
Does not require a leading or trailing blank line
$ comrak -e multiline-block-quotes -t commonmark -t xml
Some text
A quote
Some other text
Some text
A quote
Some other text
Some text
A quote
Some other text