--- title: GitLab Flavored Markdown Spec version: 0.1 date: '2023-12-18' license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)' --- ## Multi-line Blockquotes Simple container ```````````````````````````````` example >>> *content* >>> .
```````````````````````````````` Can contain block elements ```````````````````````````````` example >>> ### heading ----------- >>> .content
```````````````````````````````` Ending marker can be longer ```````````````````````````````` example >>>>>> hello world >>>>>>>>>>> normal .heading
hello world
normal
```````````````````````````````` Nested blockquotes ```````````````````````````````` example >>>>> >>>> foo >>>> >>>>> .```````````````````````````````` Incorrectly nested blockquotes ```````````````````````````````` example >>>> this block is closed with 5 markers below >>>>> auto-closed blocks >>>>> >>>> .foo
this block is closed with 5 markers below
auto-closed blocks
```````````````````````````````` Marker can be indented up to 3 spaces ```````````````````````````````` example >>>> first-level blockquote >>> second-level blockquote >>> >>>> regular paragraph .
first-level blockquote
second-level blockquote
regular paragraph
```````````````````````````````` Fours spaces makes it a code block ```````````````````````````````` example >>> content >>> .>>>
content
>>>
````````````````````````````````
Detection of embedded 4 spaces code block starts in the
column the blockquote starts, not from the beginning of
the line.
```````````````````````````````` example
>>>
code block
>>>
.
```````````````````````````````` ```````````````````````````````` example >>>> content >>> code block >>> >>>> .code block
```````````````````````````````` Closing marker can't have text on the same line ```````````````````````````````` example >>> foo >>> arg=123 .content
code block
```````````````````````````````` Blockquotes self-close at the end of the document ```````````````````````````````` example >>> foo .foo
arg=123
```````````````````````````````` They should terminate paragraphs ```````````````````````````````` example blah blah >>> content >>> .foo
blah blah
```````````````````````````````` They can be nested in lists ```````````````````````````````` example - >>> - foo >>> .content
- foo
```````````````````````````````` List indentation ```````````````````````````````` example - >>> foo bar >>> - >>> foo bar >>> .foo
bar baz
foo bar
foo bar
# Code
>>>
# Code
>>>
# Code
````````````````````````````````
Does not require a leading or trailing blank line
```````````````````````````````` example
Some text
>>>
A quote
>>>
Some other text
.
Some text
A quote
Some other text
````````````````````````````````