📦 Markdown Extensions
VitePress extends standard Markdown with powerful features.
GitHub-style Alerts
Use ::: containers for callouts:
Tip
This is a tip.
Info
This is info.
Warning
This is a warning.
Danger
This is a danger warning.
Click to expand
Foldable content here.
Code:
markdown
::: tip Tip
This is a tip.
:::
::: warning Warning
This is a warning.
:::Code Groups
Switch between multiple code blocks:
bash
npm installbash
yarn installbash
pnpm installLine Highlighting
ts
function hello() {
const name = 'world'
console.log('Hello, ' + name)
console.log('This line is highlighted')
console.log('This one too')
// This is not
}Tables
| Feature | Support | Notes |
|---|---|---|
| Tables | ✅ | Standard Markdown |
| Math | ✅ | Needs KaTeX plugin |
| Emoji | ✅ | Use :emoji: syntax |
More
See VitePress Markdown Guide for full reference.