Skip to content

📦 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 install
bash
yarn install
bash
pnpm install

Line 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

FeatureSupportNotes
TablesStandard Markdown
MathNeeds KaTeX plugin
EmojiUse :emoji: syntax

More

See VitePress Markdown Guide for full reference.

最近更新

基于 VitePress + Teek 主题构建