619 字
3 分钟
markdown语法备忘
2025-10-14

一级标题#

# 一级标题<!--后面有空格-->

二级标题#

## 二级标题

三级标题#

### 三级标题

字型#

斜体, 黑体, 高亮

_斜体_, **黑体**, `高亮`
黑体的快捷键Crtl+B

列表#

  • this one
  • that one
  • the other one
- this one
- that one
- the other one

块引号#

Block quotes are written like so.

They can span multiple paragraphs, if you like.

> Block quotes are
> written like so.
>
> They can span multiple paragraphs,
> if you like.

数字列表#

  1. first item
    • 1.1
    • 1.2
    • 1.3
  2. second item
    代码块
  3. third item
1. first item
- 1.1
- 1.2
- 1.3
2. second item
```
代码块
```
3. third item
<!--四个空格控制缩进来控制层级-->

代码块#

使用两行``` 一般来说bash中<必选参数>,[可选参数]

print("hello world")#这是注释

转义字符#

用反斜杠\,比如`

链接#

链接fuwari、章节跳转到二级标题、角标1

链接[fuwari](https://github.com/saicaca/fuwari)、章节[跳转到二级标题](#二级标题an-h2-header)、角标[^1]
[^1]: 角标内容.

水平分割线#


123


456


---
123
---
456
---
<!--内容和---之间有空格-->

定义列表#

apples : Good for making applesauce. oranges : Citrus! tomatoes : There’s no “e” in tomatoe.

apples
: Good for making applesauce.
oranges
: Citrus!
tomatoes
: There's no "e" in tomatoe.

行内块#

| Line one | Line too | Line tree

| Line one
| Line too
| Line tree

插入图片#

可以使用markdown,或者html来插入图片,html的方式可以控制大小位置等元数据。

![](https://vip.123pan.cn/1826899604/yk6baz03t0m000d7w33girwfizdpc39iDIYvAqY2BIQOAcx1AdFy.jpg)
<img src="https://vip.123pan.cn/1826899604/yk6baz03t0m000d7w33girwfizdpc39iDIYvAqY2BIQOAcx1AdFy.jpg">

数学公式#

行内公式ω=dϕ/dt\omega = d\phi / dt

$\omega = d\phi / dt$
<!--$-->

独占一行

I=ρR2dVI = \int \rho R^{2} dV

$$I = \int \rho R^{2} dV$$
<!--$$-->

插入视频#

YouTube#

Bilibili#

文章的元数据#

---
title: My First Blog Post
published: 2023-09-09
description: This is the first post of my new Astro blog.
image: ./cover.jpg
tags: [Foo, Bar]
category: Front-end
draft: false
---
属性描述
title帖子的标题。
published帖子发布的日期。
description帖子的简短描述。显示在索引页面上。
image帖子的封面图片路径。
tags帖子的标签。
category帖子的类别。
draft如果此帖子仍然是草稿,则不会显示。

markdown拓展#

cannian
/
fuwari
Waiting for api.github.com...
00K
0K
0K
Waiting...
::github{repo="cannian/fuwari"}
NOTE

突出显示用户应考虑的信息。

:::note
突出显示用户应考虑的信息。
:::
TIP

提示。

:::tip
提示。
:::
IMPORTANT

重要。

:::important
重要。
:::
WARNING

警告。

:::warning
警告。
:::
CAUTION

注意。

:::caution
注意。
:::
自定义标题

这个标题是自定义的。

:::note[自定义标题]
这个标题是自定义的。
:::

GitHub syntax#

[!TIP]

The GitHub syntax is also supported.

> [!NOTE]
> The GitHub syntax is also supported.
> [!TIP]
> The GitHub syntax is also supported.

隐藏#

The content is hidden ayyy!

The content :spoiler[is hidden **ayyy**]!

Footnotes#

  1. 角标内容.

markdown语法备忘
https://blog.cannian.space/posts/2025-10-14-markdownmemo/
作者
Cannian
发布于
2025-10-14
许可协议
CC BY-NC-SA 4.0