--- 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 Alerts Simple container ```````````````````````````````` example >>> [!NOTE] *content* >>> .

Note

content

```````````````````````````````` Other kinds of alerts: ```````````````````````````````` example >>> [!TIP] Optional information to help a user be more successful. >>> .

Tip

Optional information to help a user be more successful.

```````````````````````````````` ```````````````````````````````` example >>> [!IMPORTANT] Crucial information necessary for users to succeed. >>> .

Important

Crucial information necessary for users to succeed.

```````````````````````````````` ```````````````````````````````` example >>> [!WARNING] Critical content demanding immediate user attention due to potential risks. >>> .

Warning

Critical content demanding immediate user attention due to potential risks.

```````````````````````````````` ```````````````````````````````` example >>> [!CAUTION] Negative potential consequences of an action. >>> .

Caution

Negative potential consequences of an action.

```````````````````````````````` A title can be specified to override the default title: ```````````````````````````````` example >>> [!NOTE] Pay attention Highlights information that users should take into account, even when skimming. >>> .

Pay attention

Highlights information that users should take into account, even when skimming.

```````````````````````````````` Can contain block elements ```````````````````````````````` example >>> [!NOTE] ### heading ----------- >>> .

Note

heading


```````````````````````````````` Ending marker can be longer ```````````````````````````````` example >>>>>> [!NOTE] hello world >>>>>>>>>>> normal .

Note

hello world

normal

```````````````````````````````` Nested alerts ```````````````````````````````` example >>>>> [!NOTE] >>>> [!CAUTION] foo >>>> >>>>> .

Note

Caution

foo

```````````````````````````````` Incorrectly nested alerts ```````````````````````````````` example >>>> [!NOTE] this block is closed with 5 markers below >>>>> auto-closed blocks >>>>> >>>> .

Note

this block is closed with 5 markers below

auto-closed blocks

```````````````````````````````` Marker can be indented up to 3 spaces ```````````````````````````````` example >>>> [!NOTE] first-level blockquote >>> [!CAUTION] second-level blockquote >>> >>>> regular paragraph .

Note

first-level blockquote

Caution

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 alert starts, not from the beginning of the line. ```````````````````````````````` example >>> [!NOTE] code block >>> .

Note

code block
```````````````````````````````` ```````````````````````````````` example >>>> [!NOTE] content >>> [!CAUTION] code block >>> >>>> .

Note

content

Caution

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

Note

foo

arg=123

```````````````````````````````` Alerts self-close at the end of the document ```````````````````````````````` example >>> [!NOTE] foo .

Note

foo

```````````````````````````````` They should terminate paragraphs ```````````````````````````````` example blah blah >>> [!NOTE] content >>> .

blah blah

Note

content

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

Note

foo

bar baz

```````````````````````````````` List indentation ```````````````````````````````` example - >>> [!NOTE] foo bar >>> - >>> [!NOTE] foo bar >>> . ```````````````````````````````` Ignored inside code blocks: ```````````````````````````````` example ```txt # Code >>> [!NOTE] # Code >>> # Code ``` .
# Code
>>> [!NOTE]
# Code
>>>
# Code
```````````````````````````````` Does not require a leading or trailing blank line ```````````````````````````````` example Some text >>> [!NOTE] A quote >>> Some other text .

Some text

Note

A quote

Some other text

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