Skip to content

快速开始

Markdown 语法快速参考。

概述

此 Markdown 备忘单对所有 Markdown 语法元素进行了快速概述。它无法涵盖所有特殊情况,因此,如果你需要有关任何这些元素的更多信息,请参阅 基本语法扩展语法 的参考指南。

基本语法

这些是 John Gruber 的原始设计文档中概述的元素。所有 Markdown 应用程序都支持这些元素。

元素Markdown 语法
标题# H1
## H2
### H3
粗体**bold text**
斜体*italicized text*
引用块> blockquote
有序列表1. First item
2. Second item
3. Third item
无序列表- First item
- Second item
- Third item
代码code
水平线---
链接[title](https://www.example.com)
图片![alt text](image.jpg)

扩展语法

这些元素通过添加其他功能来扩展基本语法。并非所有 Markdown 应用程序都支持这些元素。

元素Markdown 语法
表格
| Syntax | Description |
| ----------- | ----------- |
| Header | Title |
| Paragraph | Text |
围栏代码块
```
{
  "firstName": "John",
  "lastName": "Smith",
  "age": 25
}
```
脚注
Here's a sentence with a footnote. [^1]
[^1]: This is the footnote.
        
标题ID
### My Great Heading {#custom-id}
自定义列表
term
: definition
删除线
~~The world is flat.~~
任务列表
- [x] Write the press release
- [ ] Update the website
- [ ] Contact the media

下载

你可以将此快速开始下载为 Markdown 文件,以便在 Markdown 应用程序中使用。