Files
Markdown-Introduction/markdown-introduction.md
Void-Deer 643eb82009 setup
Co-authored-by: Copilot <copilot@github.com>
2026-04-30 15:41:04 +08:00

77 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Markdown 介绍
markdown中前四级标题最为常用。注意井号#)后面有一个空格
# 这是一级标题
## 这是二级标题
### 这是三级标题
#### 这是四级标题
对于文本也有一些常用的格式:
**加粗文本**
*斜体文本*
`行内代码`
注意,如果想要新起一段,
像这样只打一个回车是不行的。
你需要像这样打两个回车,也就是空一行,才能新起一段。
### 代码块
如果你想插入一段代码,又不希望破坏它的结构,就像这样使用代码块:
```C
int main() {
printf("Hello Markdown");
return 0;
}
```
代码块由两个```包裹起来。在前面那个的后面可以指定代码语言比如上面就指定了C语言。
### 插入本地图片
可以使用相对路径插入本地图片:
![本地图片示例](./images/example2.png)
如果图片与当前文件在同一目录,也可以直接写文件名:
![本地图片](./example1.png)
## 其他常用格式
这是无序列表:
- 无序列表
- 支持多级内容
- 第三条
- 这是第四条
1. 有序列表
2. 也很常见
3. 这是第三条
4. 这是第四条
> 这是引用内容。实际用处不大
---
上面那个三个短杠表示分割线。
Markdown还有表格的语法
| 列1 | 列2 | 列3 |
| --- | --- | --- |
| a | b | c |
| d | e | f |
| | | |
| g | h | i |