← 速查表

Markdown 语法速查表

Markdown 把纯文本里的标点变成格式。下面这些在 GitHub、大多数编辑器和本站都能用。

语法

你输入你得到
# H1 · ## H2 · ### H3Headings (descending size)
**bold** · *italic* · ~~strike~~bold · italic · strikethrough
[text](https://example.com)A hyperlink
![alt](image.png)An image
`code`Inline code
```js\ncode block\n```Fenced code block with language hint
> quoted textBlockquote
- item · * item · 1. itemUnordered / ordered lists
--- or ***Horizontal rule
| a | b |\n|---|---|\n| 1 | 2 |A table
- [ ] task · - [x] doneTask list (GitHub flavored)
line ends with two spaces ⏎Hard line break

常见问题

Why is my line break ignored?
A single newline renders as a space. End the line with two spaces, use a backslash, or leave a blank line for a new paragraph.

How do I nest lists?
Indent the nested list by 2–4 spaces under the parent item. Mixing tabs and spaces breaks this in some renderers — pick spaces.

Escaping special characters?
Prefix with a backslash: \*not italic\* renders the asterisks literally.

别死记,直接用工具

Convert it live in the Markdown Converter