# 标题语法

使用# (#加空格)来标识标题,多个# 标识次级标题

1
2
# 一级标题

# 一级标题

1
2
## 二级标题

# 二级标题

1
2
###### 多级标题

# 多级标题

# 段落语法

markdown 使用空白行将一行或多行文本进行分隔

1
2
3
I really like using Markdown.

I think I'll use it to format all of my documents from now on.

I really like using Markdown.

I think I'll use it to format all of my documents from now on.

# 换行语法

markdown 支持使用 HTML 的 <br> 标签进行换行

1
This is the first line.<br>And this is the second line.

This is the first line.
And this is the second line.

# 强调语法

# 粗体

1
**这是粗体**

这是粗体

# 斜体

1
*这是斜体*

这是斜体

# 粗体 & 斜体

1
***这是粗体&斜体***

这是粗体 & 斜体

# 图片语法

基本格式: ![图片alt](图片链接 "图片title")

1
![这是图片](/images/pasted-0.png "网页NES模拟器")

这是图片

# 链接语法

基本格式: [tag](link)

1
点击[这里](https://www.aweisite.site)

点击这里

也可以使用尖括号 <> 直接转变为可点击的链接

1
<https://www.aweisite.site>

https://www.aweisite.site

# 代码块语法

基本格式: [language] [title] [url] [link text] [mark] [command]

行高亮
1
2
3
4
Scanner in = new Scanner (System.in);
// 输入 Scan 之后,按下键盘 Alt + “/” 键,Eclipse 下自动补全。
System.out.println (in.nextLine ());
System.out.println ("Hello" + "world.");
命令行提示符 command:("[root@localhost] $":1,9-10||"[admin@remotehost] #":4-6)
1
2
3
4
5
6
7
8
9
10
11
pwd
/usr/home/chris/bin
ls -la
total 2
drwxr-xr-x 2 chris chris 11 Jan 10 16:48 .
drwxr--r-x 45 chris chris 92 Feb 14 11:10 ..
-rwxr-xr-x 1 chris chris 444 Aug 25 2013 backup
-rwxr-xr-x 1 chris chris 642 Jan 17 14:42 deploy
git add -A
git commit -m "update"
git push

# emoji 相关用法

使用 markdown-it-emoji ,用法

1
:label:
使用全部标签
1
2
3
:kissing_heart:
:ring:
:notes:

😘
💍
🎶

# label 标签语法

用中括号 [] 包裹标签内容 [label] 并且在之后加上对应的资源名

1
[label]{.label}

label

标签内容可以包含 emoji

1
2
[:heavy_check_mark:success]{.label .success}

✔️success

也可以通过添加资源设置标签的风格

1
[warning]{.label .warning}

warning

1
[:broken_heart:danger]{.label .danger}

💔danger

# note 提醒块语法

开始行 :::[风格颜色]

结束行 :::

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
:::default
默认
:::
:::primary
基本
:::
:::info
提示
:::
:::success
成功
:::
:::warning
警告
:::
:::danger
危险
:::
:::danger no-icon
危险
:::

默认

基本

提示

成功

警告

危险

危险

# 引用语法

在段落前使用符号 > 创建一个引用块

1
2
3
>这是一个引用块
>>这个块可以有嵌套
>>也可以有[***其他元素***]{.label .info}

这是一个引用块

这个块可以有嵌套
也可以有其他元素