Markdown
语法文档
基础语法文档
原始设计文档中概述的元素。所有Markdown应用程序都支持这些元素
| Element | Markdown Syntax |
|---|---|
| 标题 | # 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) |
| 图片 |  |
扩展语法文档
添加其他功能扩展了基本语法。并非所有Markdown应用程序都支持这些元素。
| Element | Markdown Syntax |
|---|---|
| 表格 | | 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. |
| 锚点自定义 | ### My Great Heading {#custom-id} |
| 定义列表 | term : definition |
| 删除线 | ~~The world is flat.~~ |
| 任务清单 | - [x] Write the press release - [ ] Update the website - [ ] Contact the media |
语法示例
基础语法示例
扩展语法示例
特殊符号转义
转义字符:\
需要转义的特殊字符:
| Character | Name |
|---|---|
| \ | backslash |
| ` | tick mark |
| * | asterisk |
| _ | underscore |
| {} | curly braces |
| [] | brackets |
| () | parentheses |
| # | pound sign |
| + | plus sign |
| - | minus sign (hyphen) |
| . | dot |