1
0
Files
cheatsheet-site/content/markdown/markdown-extensions.md
yuudi 728a3db957
Some checks failed
Build / build (push) Has been cancelled
init
2025-08-12 18:37:54 -06:00

113 lines
1.5 KiB
Markdown

+++
date = '2025-08-10T11:50:12Z'
title = 'Markdown Extensions'
+++
## 表格
```markdown
| 表头1 | 表头2 | 表头3 |
|---|---|---|
| 单元格1 | 单元格2 | 单元格3 |
| 单元格4 | 单元格5 | 单元格6 |
```
| 表头1 | 表头2 | 表头3 |
|---|---|---|
| 单元格1 | 单元格2 | 单元格3 |
| 单元格4 | 单元格5 | 单元格6 |
## 分割线
```markdown
___
---
***
```
---
## 定义
术语1
: 这是术语1的定义。
术语2
: 这是术语2的第一个定义。
: 这是术语2的第二个定义。
```markdown
术语1
: 这是术语1的定义。
术语2
: 这是术语2的第一个定义。
: 这是术语2的第二个定义。
```
## 语法
```markdown
### Header-with {#custom-id}
~~delete~~
==highlight==
H~2~O
X^2^
$(x+y)^2=x^2+y^2+2xy$
:joy:
```
### Header-with {#custom-id}
~~delete~~
==highlight==
H~2~O
X^2^
$(x+y)^2=x^2+y^2+2xy$
:joy:
## 脚注
```markdown
这是一个有脚注的句子[^1]。
[^1]: 这是脚注的内容。
Here's a simple footnote and here's a longer one.[^note]
[^note]: Here's one with multiple paragraphs and code.
```
这是一个有脚注的句子[^1]。
[^1]: 这是脚注的内容。
Here's a simple footnote and here's a longer one.[^note]
[^note]: Here's one with multiple paragraphs and code.
## mermaid
[mermaid](./mermaid.md)
```mermaid
graph LR
A[Start] --> B(Process 1)
B --> C{Condition};
C -- Yes --> D(Result A)
C -- No --> E(Result B)
D --> F(End)
E --> F
```