Admonition Shortcodes Demo
A demonstration of the note, warning, tip, and info admonition shortcodes available for content authors.
Table of Contents
This post demonstrates the admonition shortcodes available for highlighting important information in your articles. Each admonition type has a distinct color scheme and icon to help readers quickly identify the type of information being presented.
Note
Use notes to highlight general information that readers should be aware of.
Note
You can also customize the title:
Remember
Notes support markdown formatting, including:
- Lists
inline code- Links
Markdown Support
You can use bold, italic, and code within admonitions.
Here’s a list inside a note:
- First item
- Second item
- Third item
Warning
Warnings draw attention to potential issues, gotchas, or things that could cause problems.
Warning
sudo privileges. Always review commands before executing them.Breaking Change
/api/v1/users to /api/v2/users. Update your integrations accordingly.Security Notice
Tip
Tips provide helpful suggestions, best practices, or productivity improvements.
Tip
Ctrl+Shift+P (or Cmd+Shift+P on Mac) to open the command palette in VS Code.Pro Tip
You can chain multiple git commands together using && to save time:
git add . && git commit -m "message" && git pushPerformance Optimization
loading="lazy" to your <img> tags.Info
Info boxes provide supplementary information, background context, or interesting facts.
Info
Background
Did You Know?
Combining Admonitions
You can use multiple admonition types in sequence to create comprehensive documentation:
Note
Tip
nvm (Node Version Manager) to easily switch between Node.js versions.Warning
npm install with an older Node.js version may result in dependency resolution errors.Info
node --version in your terminal.Summary
| Shortcode | Use Case | Color |
|---|---|---|
note | General information, context | Blue |
warning | Potential issues, gotchas | Amber |
tip | Best practices, suggestions | Green |
info | Background, supplementary info | Purple |
All admonitions support:
- Custom titles via the
titleparameter - Full markdown formatting inside
- Dark mode with appropriate color adjustments