Skip to content

Markdown

标题

Markdown 语法HTML 标签说明
#h1标题 1
##h2标题 2
###h3标题 3
####h4标题 4
#####h5标题 5
######h6标题 6

段落

正文内容 ItalicBold
换行

js
// p、em、strong、br

// 正文内容 *Italic*、**Bold**、\
// 换行

链接

js
// a

// - [Front Matter](/front-matter/front-matter) // 内部链接
// - [Link](http://a.com) // 外部链接

图片

Image

js
// img

// ![Image](/vitepress-logo-large.webp)

引用

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

有序列表

  1. List Item
  2. List Item
js
// ol > li

// 1. List Item
// 2. List Item

嵌套列表

  1. List Item
    • List Item
    • List Item
  2. 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 | 单元格2

GitHub 风格的表格

TablesAreCool
col 3 isright-aligned$1600
col 2 iscentered$12
zebra stripesare 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 |