Skip to content

VuePress & VitePress

部分 Markdown 文件编写格式

Vitepress 编辑

标题类

一级标题
# 一级标题名称

二级标题
## 二级标题名称

三级标题
### 三级标题名称

...
一级标题
# 一级标题名称

二级标题
## 二级标题名称

三级标题
### 三级标题名称

...

标签类

md
- Hello Vuepress
- Hello Vuepress

输出类

默认格式

```
hello default
```
```
hello default
```

html 格式

```html
<html>
<head></head>
<body>
  <div id="app"></div>
</body>
</html>
```
```html
<html>
<head></head>
<body>
  <div id="app"></div>
</body>
</html>
```

md 格式

```md
hello md
```
```md
hello md
```

js 格式

```js
function hello(){
  console.log('hello world');
}
```
```js
function hello(){
  console.log('hello world');
}
```

json,bash 格式支持

用法类似

目录类

[[toc]]
[[toc]]

链接类

[百度一下](https://www.baidu.com)
[百度一下](https://www.baidu.com)

风格类

普通文字

hello world
hello world

加粗文字

**hello world**
**hello world**

背景文字

`hello world`
`hello world`

提示类

轻提示

::: tip 轻提示
我是轻提示
:::
::: tip 轻提示
我是轻提示
:::

警告

::: warning 警告
我是警告
:::
::: warning 警告
我是警告
:::

危险

::: danger 危险
我是危险
:::
::: danger 危险
我是危险
:::

表格类

| 1   | 2   | 3   |
| --- | --- | --- |
| 4   | 5   | 6   |
| 7   | 8   | 9   |
| 1   | 2   | 3   |
| --- | --- | --- |
| 4   | 5   | 6   |
| 7   | 8   | 9   |

表情类

部分

emojiemoji nameemojiemoji nameemojiemoji name
🎉:tada:😠:angry:🍎:apple:
💯:100:😧:anguished:🏀:basketball:
👍:+1:👎:-1:🕐:clock1:
👊:facepunch:👏:clap::coffee:
😳:flushed:0️⃣:zero:😒:unamused:
🏈:football:😟:worried:🚶:walking:
👣:footprints:🔧:wrench:🆚:vs:
4️⃣:four::x::watch:
💤:zzz:👋:wave:⚠️:warning:
😭:sob:😱:scream:🌹:rose:

Released under the MIT License.