Support
    Home
    Problems
    Contests
    Courses
    Posts
Admonitions
Sign in

Admonitions

Admonitions allow you to emphasize a fragment of a document or place additional information. To add an admonitions, use the following syntax

!!! note "Title"
    Content

In this example, note is the admonition type and "Title" is the title. The admonition will display all the text that follows this fragment and is separated by 4 space characters.

Markdown
!!! example "Result"
    First paragraph.

    Second paragraph.
Result
First paragraph.

Second paragraph.

Possible types of admonitions

Collapsible

Replace !!! with ??? to make a collapsible admonition. The admonition will be collapsed by default, but the user will be able to open them by clicking on the title.

Markdown
??? example "Result"
    This admonition is collapsed by default.
Result

This admonition is collapsed by default.

You can make the admonition expanded by default by adding + to ???.

Markdown
???+ example "Result"
    This admonition is expanded by default, but can be collapsed.
Result

This admonition is expanded by default, but can be collapsed.

Types

These are possible types of admonitions.

Note

This admonition type is note

Abstract

This admonition type is abstract

Info

This admonition type is info

Tip

This admonition type is tip

Success

This admonition type is success

Question

This admonition type is question

Warning

This admonition type is warning

Failure

This admonition type is failure

Danger

This admonition type is danger

Bug

This admonition type is bug

Example

This admonition type is example

Quote

This admonition type is quote

Input

This admonition type is input

Output

This admonition type is output

Answer

This admonition type is answer