Translated by AI model Qwen/Qwen3-8B.
Source Language: Simplified Chinese, Target Language: english, Translation Time: 2026-05-01 15:00
.AI translation is for reference only. Accuracy is not guaranteed, please refer to the original text.
This article is derived from here
This is a quick reference and demonstration guide. For more complete information, please see John Gruber's original specification and the Github-flavored Markdown information page.
This cheat sheet is specifically for Markdown Here's Github-flavored Markdown version. This differs slightly from the style and syntax used by Github, so the content you see below may differ slightly from what you get in Markdown Here emails, but should be very close.
Directory
Headers Emphasis Lists Links Images Code and syntax highlighting Blockquotes Inline HTML Horizontal rules Line breaks
## Headers# H1
## H2
### H3
#### H4
##### H5
###### H6
或者,对于 H1 和 H2,使用下划线样式:
Alt-H1
======
Alt-H2
------
H1
H2
H3
H4
H5
H6
Alternatively, for H1 and H2, use underscore style:
Alt-H1
Alt-H2
Emphasis
强调,或称为斜体,用 *星号* 或 _下划线_。
强烈强调,或称为粗体,用 **星号** 或 __下划线__。
组合强调,用 **星号和 _下划线_**。
Emphasis, or italics, is done with asterisks or underscores.
Strong emphasis, or bold, is done with asterisks or underscores.
Combined emphasis is done with asterisks and underscores.
Lists
1. 第一个有序列表项
2. 另一个项
* 无序子列表。
1. 实际数字无关紧要,只要是一个数字
1. 有序子列表
4. 另一个项。
一些应与上述项目对齐的文本。
* 无序列表可以使用星号
- 或减号
+ 或加号
- First item of an ordered list
- Another item
- Unordered sublist.
-
The actual number doesn't matter, as long as it's a number
-
Ordered sublist
-
Another item.
Some text that should be aligned with the above item.
- Unordered lists can use asterisks
- Or hyphens
- Or pluses
Links
[文本](链接)
Images


Code and syntax highlighting
代码块内使用反引号 `,如:`code`
多行代码块使用三个反引号:
code
Use backticks ` inside code blocks, like: code
Multi-line code blocks use three backticks:
代码
Blockquotes
> 引用块用大于号
Blockquotes use the greater-than symbol
Inline HTML
内联 HTML 直接写:
<span style="color: red">红色文本</span>
Inline HTML is written directly:
Red text
Horizontal rules
三个或更多...
---
连字符
***
星号
___
下划线
Three or more...
Hyphens
Stars
Underscores
Line breaks
I basically recommend learning how to use line breaks through experimentation and discovery — press
Here are some things to try:
只有一个换行符,这行和
这行将是 *单行*。
但这一行被两个换行符分隔,因此将是 *单独的段落*。
这一行末尾有两个空格(您可能看不到,但请相信我!)。
所以这是 *同一段落* 中的单独一行。
A single line break, this line and this line will be single line.
But this line is separated by two line breaks, so it will be a separate paragraph.
This line ends with two spaces (you may not see them, but believe me!).
So this is a separate line within the same paragraph.
If you enjoyed this, leave a comment~