Markdown
标题
| Markdown 语法 | HTML 标签 | 说明 |
|---|---|---|
# | h1 | 标题 1 |
## | h2 | 标题 2 |
### | h3 | 标题 3 |
#### | h4 | 标题 4 |
##### | h5 | 标题 5 |
###### | h6 | 标题 6 |
段落
正文内容 Italic、Bold、
换行
js
// p、em、strong、br
// 正文内容 *Italic*、**Bold**、\
// 换行链接
js
// a
// - [Front Matter](/front-matter/front-matter) // 内部链接
// - [Link](http://a.com) // 外部链接图片

js
// img
// - https://vitepress.dev/zh/guide/asset-handling
- https://vitepress.dev/zh/guide/markdown#image-lazy-loading
引用
Blockquote
Nested Blockquote
— Docusaurus
js
// blockquote
// > Blockquote
// >
// > > Nested Blockquote
// >
// > — Docusaurus分割线
js
// hr
// ---代码
内联代码
code
js
// code
// `code`代码块
列表
无序列表
- List Item
- List Item
js
// ul > li
// - List Item
// - List Item有序列表
- List Item
- List Item
js
// ol > li
// 1. List Item
// 2. List Item嵌套列表
- List Item
- List Item
- List Item
- List Item
- List Item
- List Item
js
// ol > li
// 1. List Item
// - List Item
// - List Item
// 2. List Item
// - List Item
// - List Item表格
| 表头1 | 表头2 |
|---|---|
| 单元格1 | 单元格2 |
| 单元格1 | 单元格2 |
js
// table > thead、tbody > tr > th、td
// 表头1 | 表头2
// ---|---
// 单元格1 | 单元格2GitHub 风格的表格
| Tables | Are | Cool |
|---|---|---|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
js
// table > thead、tbody > tr > th、td
// | Tables | Are | Cool |
// | ------------- | :-----------: | ----: |
// | col 3 is | right-aligned | $1600 |
// | col 2 is | centered | $12 |
// | zebra stripes | are neat | $1 |