了解更多

Markdown 语法速查表

所有 Markdown 基本语法的快速参考

试用实时预览

本速查表提供了所有常用 Markdown 语法的快速参考。收藏此页面,在写作时随时查阅。每个部分都包含 Markdown 语法及其产生的效果。

文本格式

元素语法结果
粗体**bold**bold
斜体*italic*italic
粗斜体***both***both
删除线~~struck~~struck
行内代码`code`code

标题

# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6

始终在井号后面加一个空格。

列表

无序列表

- Item one
- Item two
  - Nested item
- Item three

有序列表

1. First
2. Second
3. Third

任务列表

- [x] Completed task
- [ ] Incomplete task

链接和图片

链接

[Link Text](https://example.com)
[Link with Title](https://example.com "Title")

图片

![Alt Text](image.jpg)
![Alt Text](image.jpg "Image Title")

引用链接

[Link Text][ref]

[ref]: https://example.com

代码

行内代码

Use `backticks` for inline code.

代码块

```
Code block without syntax highlighting
```

带语法高亮的代码块

```javascript
const greeting = "Hello, World!";
console.log(greeting);
```

表格

| Header 1 | Header 2 | Header 3 |
|----------|----------|----------|
| Cell 1   | Cell 2   | Cell 3   |
| Cell 4   | Cell 5   | Cell 6   |

表格对齐

| Left | Center | Right |
|:-----|:------:|------:|
| L    | C      | R     |

引用块

> This is a blockquote.
>
> It can have multiple paragraphs.

水平线

---

也可以使用 ***___

转义字符

使用反斜杠显示字面字符:

\*not italic\*
\# not a heading

可以转义的字符:\ ` * _ {} [] () # + - . !

相关资源

Markdown 语法速查表 | Markdown2ANY | Markdown2ANY