Markdown 语法速查

标题、链接、代码块、表格、任务列表等语法

🔍
标题
# H1 / ## H2 / ### H3
ATX 风格标题 (# ~ ###)
Title =====
Setext 风格一级标题
---
水平分割线
文本样式
**bold** / *italic* / ~~strike~~
粗体、斜体、删除线
`inline code`
行内代码
> blockquote text
引用块
链接与图片
[text](https://example.com)
超链接语法
![alt](image.png)
插入图片
[text](url "title")
带 title 的链接
代码块
```js const x = 1; ```
围栏代码块(可指定语言)
4 spaces indent
缩进代码块
列表
- item A - item B
无序列表
1. first 2. second
有序列表
- [x] done - [ ] todo
任务列表(勾选框)
表格
| Col1 | Col2 | | --- | --- | | A | B |
基础表格语法
| :--- | ---: |
左/中/右对齐
其他
--- title: Page Title ---
YAML Front Matter
[^1]: footnote content
脚注语法
$$ E = mc^2 $$
数学公式(需渲染器支持)