Markdown 速查表

完整的 Markdown 语法参考指南,包含示例和实时预览。学习所有 Markdown 语法,包括标题、列表、表格、代码块、数学公式和 GitHub Flavored Markdown 扩展。

Markdown Syntax Reference Table

语法预览

基本语法

# Heading 1
渲染中...
## Heading 2
渲染中...
### Heading 3
渲染中...
**bold text**
渲染中...
*italic text*
渲染中...
~~strikethrough~~
渲染中...
`inline code`
渲染中...
[link text](https://example.com)
渲染中...
![image alt](/favicons/favicon-96x96.png)
渲染中...

列表

- Unordered item
- Another item
渲染中...
1. Ordered item
2. Another item
渲染中...
- Nested list
  - Sub-item 1
  - Sub-item 2
渲染中...

引用和代码

> Quote text
渲染中...
```javascript
const x = 1;
```
渲染中...
```python
def hello():
    print("Hello")
```
渲染中...

表格

| Col1 | Col2 | Col3 |
|------|------|------|
| Data1 | Data2 | Data3 |
渲染中...
| Left | Center | Right |
|:-----|:------:|------:|
| Left | Center | Right |
渲染中...

水平线

---
渲染中...
***
渲染中...

数学公式

$E = mc^2$
渲染中...
$\sum_{i=1}^{n} x_i$
渲染中...
$$\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}$$
渲染中...
$$\frac{-b \pm \sqrt{b^2-4ac}}{2a}$$
渲染中...
$$\begin{pmatrix} a & b \\ c & d \end{pmatrix}$$
渲染中...

GFM 扩展

~~strikethrough text~~
渲染中...
| Header1 | Header2 |
|---------|---------|
| Cell    | Cell    |
渲染中...
- [ ] Incomplete task
- [x] Completed task
渲染中...

HTML 标签

<kbd>Ctrl</kbd> + <kbd>C</kbd>
渲染中...
<mark>highlighted text</mark>
渲染中...
<sub>subscript</sub> and <sup>superscript</sup>
渲染中...
<em>emphasis</em> and <strong>bold</strong>
渲染中...