Skip to content
On This Page

来源于工作,拓展所见所闻 💯


  • 工作之余,记录日常所思所想所做,现在离全栈还差 k8s 和数据库相关,不能放弃,1212
  • 未来不可期,把握当下 🇨🇳

工作小记

vitepress markdown 写作语法

Custom Containers

Custom containers can be defined by their types, titles, and contents.

Default Title

Input

md
::: info
This is an info box.
:::

::: tip
This is a tip.
:::

::: warning
This is a warning.
:::

::: danger
This is a dangerous warning.
:::

::: details
This is a details block.
:::

Output

INFO

This is an info box.

TIP

This is a tip.

WARNING

This is a warning.

DANGER

This is a dangerous warning.

Details

This is a details block.

Emoji 🎉

md
:tada: :100:

output: 🎉 💯

A list of all emojis is available.

Table of Contents

Input

[[toc]]

Code groups

js
/**
 * @type {import('vitepress').UserConfig}
 */
const config = {
  // ...
};

export default config;
ts
import type { UserConfig } from "vitepress";

const config: UserConfig = {
  // ...
};

export default config;

Markdown File Inclusion

You can include a markdown file in another markdown file like this:

一个 md 文档中包含另一个 md 文档

!-- @include: ./202303.md --