Each row shows three columns: the original
Markdown source, the Generated HTML that
a static site generator would produce without admonition support,
and the Live output
after aDOMonitions transforms that HTML into a styled callout.
Click Transform to run init() on the
live-output rightmost panels and see the result.
> [!NOTE]
> This is a compact note with the body on the same paragraph.
<blockquote>
<p>[!NOTE]<br>This is a compact note with the
body on the same paragraph.</p>
</blockquote>
[!NOTE]
This is a compact note with the body on the same paragraph.
> [!INFO]
> Body on same paragraph with a **bold** word.
<blockquote>
<p>[!INFO]<br>Body on same paragraph with a
<strong>bold</strong> word.</p>
</blockquote>
[!INFO]
Body on same paragraph with a bold word.
> [!TIP]
>
> This is a separate paragraph from the title.
>
> And includes a second paragraph as well.
<blockquote>
<p>[!TIP]</p>
<p>This is a separate paragraph
from the title.</p>
<p>And includes a second
paragraph as well.</p>
</blockquote>
[!TIP]
This is a separate paragraph from the title.
And includes a second paragraph as well.
> [!IMPORTANT] Breaking Change
> The API has changed in v2.0.
<blockquote>
<p>[!IMPORTANT] Breaking Change<br>
The API has changed in v2.0.</p>
</blockquote>
[!IMPORTANT] Breaking Change
The API has changed in v2.0.
> [!WARNING]
>
> Do not run this in production.
>
> - It will delete data
> - It cannot be undone
<blockquote>
<p>[!WARNING]</p>
<p>Do not run this in production.</p>
<ul>
<li>It will delete data</li>
<li>It cannot be undone</li>
</ul>
</blockquote>
[!WARNING]
Do not run this in production.
- It will delete data
- It cannot be undone
> [!CAUTION] This action is *irreversible*.
<blockquote>
<p>[!CAUTION] This action is
<em>irreversible</em>.</p>
</blockquote>
[!CAUTION] This action is irreversible.
> [!DANGER]
> This will destroy your database.
<blockquote>
<p>[!DANGER]</p>
<p>This will destroy your database.</p>
</blockquote>
[!DANGER]
This will destroy your database.
:::note
This is a Docusaurus-style note admonition.
:::
<p>:::note</p>
<p>This is a Docusaurus-style note
admonition.</p>
<p>:::</p>
:::note
This is a Docusaurus-style note admonition.
:::
:::info Did you know?
Admonitions support `inline code` and [links](#).
:::
<p>:::info Did you know?</p>
<p>Admonitions support
<code>inline code</code> and
<a href="#">links</a>.</p>
<p>:::</p>
:::tip
Use `theme: null` to bring your own CSS.
:::
<p>:::tip</p>
<p>Use <code>theme: null</code>
to bring your own CSS.</p>
<p>:::</p>
:::tip
Use theme: null to bring your own CSS.
:::
:::important
This is a critical piece of information.
:::
<p>:::important</p>
<p>This is a critical piece of information.</p>
<p>:::</p>
:::important
This is a critical piece of information.
:::
:::warning
Be careful with the following:
- Unvalidated inputs
- Missing error handling
:::
<p>:::warning</p>
<p>Be careful with the following:</p>
<ul>
<li>Unvalidated inputs</li>
<li>Missing error handling</li>
</ul>
<p>:::</p>
:::warning
Be careful with the following:
:::
:::caution
Proceed carefully — this cannot be undone.
:::
<p>:::caution</p>
<p>Proceed carefully — this cannot be undone.</p>
<p>:::</p>
:::caution
Proceed carefully — this cannot be undone.
:::
:::danger
This will destroy your database. Proceed with extreme caution.
:::
<p>:::danger</p>
<p>This will destroy your database.
Proceed with extreme caution.</p>
<p>:::</p>
:::danger
This will destroy your database. Proceed with extreme caution.
:::