Markdown 速查表

本速查表提供常用 Markdown 语法元素的快速参考。写作时可作随手指南。

基本语法

元素Markdown 语法
标题 1# Heading 1
标题 2## Heading 2
标题 3### Heading 3
粗体**bold text**
斜体*italic text*
粗体与斜体***bold & italic***
删除线~~strikethrough~~
无序列表- List item
- Another item
有序列表1. First item
2. Second item
链接[Link text](URL)
图片![Alt text](image.jpg)
行内代码`code`
引用> Blockquote text
水平线--- or *** or ___
换行行末加两个空格

扩展语法

元素Markdown 语法
表格| Header | Header |
|--------|--------|
| Cell | Cell |
对齐表格| Left | Center | Right |
|:-----|:------:|------:|
| Cell | Cell | Cell |
任务列表- [ ] Task
- [x] Done
围栏代码块```language
code block
```
脚注Text[^1]
[^1]: Footnote
定义列表Term
: Definition
Mermaid 图```mermaid
graph TD
A --> B
```
数学公式$E = mc^2$
表情符号:smile: :heart:
高亮==highlighted text==
下标H~2~O
上标X^2^

速查示例

基本文档结构

# Main Title
## Section 1
Content goes here...

## Section 2
- List item 1
- List item 2

> Important note here

扩展格式

| Feature | Support |
|---------|---------|
| Tables  | ✅      |
| Lists   | ✅      |
| Code    | ✅      |

- [ ] Task 1
- [x] Task 2

:smile: Happy coding!

技巧

  • 用 **#** 表示标题(1–6 级)
  • 用 ****** 或 **__** 表示粗体
  • 用 *** 或 **_ ** 表示斜体
  • 用 **`** 表示行内代码
  • 用 **```** 表示带语法高亮的代码块
  • 用 **>** 表示引用
  • 用 **-** 或 *** 表示无序列表
  • 用 **1.** 表示有序列表
  • 用 **---** 表示水平线
  • 用 **[文字](url)** 表示链接
  • 用 **![alt](url)** 表示图片