--- 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* >>> .

content

```````````````````````````````` Can contain block elements ```````````````````````````````` example >>> ### heading ----------- >>> .

heading


```````````````````````````````` Ending marker can be longer ```````````````````````````````` example >>>>>> hello world >>>>>>>>>>> normal .

hello world

normal

```````````````````````````````` Nested blockquotes ```````````````````````````````` example >>>>> >>>> foo >>>> >>>>> .

foo

```````````````````````````````` Incorrectly nested blockquotes ```````````````````````````````` example >>>> 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 ```````````````````````````````` 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 >>> .
code block
```````````````````````````````` ```````````````````````````````` example >>>> content >>> code block >>> >>>> .

content

code block
```````````````````````````````` Closing marker can't have text on the same line ```````````````````````````````` example >>> foo >>> arg=123 .

foo

arg=123

```````````````````````````````` Blockquotes self-close at the end of the document ```````````````````````````````` example >>> foo .

foo

```````````````````````````````` They should terminate paragraphs ```````````````````````````````` example blah blah >>> content >>> .

blah blah

content

```````````````````````````````` They can be nested in lists ```````````````````````````````` example - >>> - foo >>> . ```````````````````````````````` Or in blockquotes ```````````````````````````````` example > >>> > foo >> bar > baz > >>> .

foo

bar baz

```````````````````````````````` List indentation ```````````````````````````````` example - >>> foo bar >>> - >>> foo bar >>> . ```````````````````````````````` Ignored inside code blocks: ```````````````````````````````` example ```txt # Code >>> # Code >>> # Code ``` .
# 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

````````````````````````````````