Admonitions
Grammar
This feature integrated remark-directive
The iconify icons should be in the Pre-build iconify icons config
:::tip|info|note|warning|important|caution|danger[Title]{icon=icon-collection:icon-name}
Some admonition content
::: Tip
Some tip content
Some tip content
:::tip[Tip title]
Some tip content
:::
:::tip[Tip with custom icon]{icon=ph:smiley}
Some tip content
::: Info
Some info content
Some info content
:::info[Info title]
Some info content
:::
:::info[Info with custom icon]{icon=ph:smiley}
Some info content
::: Note
Some note content
Some note content
:::note[Note title]
Some note content
:::
:::note[Note with custom icon]{icon=ph:smiley}
Some note content
::: Warning
Some warning content
Some warning content
:::warning[Warning title]
Some warning content
:::
:::warning[Warning with custom icon]{icon=ph:smiley}
Some warning content
::: Important
Some important content
Some important content
:::important[Important title]
Some important content
:::
:::important[Important with custom icon]{icon=ph:smiley}
Some important content
::: Caution
Some caution content
Some caution content
:::caution[Caution title]
Some caution content
:::
:::caution[Caution with custom icon]{icon=ph:smiley}
Some caution content
::: Danger
Some danger content
Some danger content
:::danger[Danger title]
Some danger content
:::
:::danger[Danger with custom icon]{icon=ph:smiley}
Some danger content
::: Links and inline code
Links and inline code inside an admonition inherit the admonition's theme color and background:
A tip link and tip both match the tip color.
An info link and info both match the info color.
A note link and note both match the note color.
A warning link and warning both match the warning color.
An important link and important both match the important color.
A caution link and caution both match the caution color.
A danger link and danger both match the danger color.
:::tip[Tip title]
A [tip link](/guide/introduction/) and `tip` both match the tip color.
:::
:::info[Info title]
An [info link](/guide/introduction/) and `info` both match the info color.
:::
:::note[Note title]
A [note link](/guide/introduction/) and `note` both match the note color.
:::
:::warning[Warning title]
A [warning link](/guide/introduction/) and `warning` both match the warning color.
:::
:::important[Important title]
An [important link](/guide/introduction/) and `important` both match the important color.
:::
:::caution[Caution title]
A [caution link](/guide/introduction/) and `caution` both match the caution color.
:::
:::danger[Danger title]
A [danger link](/guide/introduction/) and `danger` both match the danger color.
:::