Markdown Admonitions
/ 2 min read
Updated:Table of Contents
What are admonitions
Admonitions (also known as “asides”) are useful for providing supportive and/or supplementary information related to your content.
How to use them
To use admonitions in Astro Cactus, wrap your Markdown content in a pair of triple colons :::
. The first pair should also include the type of admonition you want to use.
For example, with the following Markdown:
:::noteHighlights information that users should take into account, even when skimming.:::
Outputs:
Admonition Types
The following admonitions are currently supported:
note
tip
important
warning
caution
Note
:::noteHighlights information that users should take into account, even when skimming.:::
Tip
:::tipOptional information to help a user be more successful.:::
Important
:::importantCrucial information necessary for users to succeed.:::
Caution
:::cautionNegative potential consequences of an action.:::
Warning
:::warningCritical content demanding immediate user attention due to potential risks.:::
Customising the admonition title
You can customise the admonition title using the following markup:
:::note[My custom title]This is a note with a custom title.:::
Outputs: