Pass the built-in AlertRenderer through the renderers prop. Best when alerts need to look identical across pages and the styling lives in one place.
markedAlert() extension parses > [!NOTE] syntax into alert tokens — five severities: NOTE, TIP, IMPORTANT, WARNING, CAUTION.AlertRenderer through renderers and every
page gets the identical look + icon set.GitHub-style alerts highlight critical information in documentation.
Note
Useful information that users should know, even when skimming content.
Tip
Helpful advice for doing things better or more easily.
Important
Key information users need to know to achieve their goal.
Warning
Urgent info that needs immediate user attention to avoid problems.
Caution
Advises about risks or negative outcomes of certain actions.
Regular markdown works alongside alerts: bold, italic, and inline code.
An inline {#snippet alert(props)} block lets each page render alerts however it wants — different icon set, different layout, full markup control.
{#snippet alert({ variant, text })} gives this page full control over
markup — different icons, layout, or even an entirely different design.GitHub-style alerts highlight critical information in documentation.
Regular markdown works alongside alerts: bold, italic, and inline code.