46
README.md
Normal file
46
README.md
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
# 你要做什么?
|
||||||
|
|
||||||
|
在VSCode中,用 git clone 这个仓库,然后研究markdown-introduction.md这个文件。它介绍了markdown的一些常用语法。
|
||||||
|
|
||||||
|
## 我不会啊?
|
||||||
|
|
||||||
|
首先,新建一个单独的文件夹。你绝对不会希望git clone下来的文件和其他东西混一起。
|
||||||
|
|
||||||
|
在这个新建的文件夹内打开VSCode,或者在VSCode中打开这个文件夹。页面应该长这样:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
点击右上角的图示按钮,然后在下面点击“终端”
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
然后你就可以在终端里输入:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://gitea.voiddeer.cn/Void_Deer/Markdown-Introduction.git
|
||||||
|
```
|
||||||
|
|
||||||
|
这条命令会把这个仓库克隆到你当前所在的文件夹里。克隆完成后,你就可以在VSCode的资源管理器里看到这个仓库了。
|
||||||
|
|
||||||
|
接下来,打开markdown-introduction.md这个文件,看看里面的内容。它介绍了markdown的一些常用语法。
|
||||||
|
|
||||||
|
## 我运行git clone的时候,它报错了!
|
||||||
|
|
||||||
|
如果你看到了:
|
||||||
|
|
||||||
|
```text
|
||||||
|
git: The term 'git' is not recognized as a name of a cmdlet, function, script file, or executable program.
|
||||||
|
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
|
||||||
|
```
|
||||||
|
|
||||||
|
或者:
|
||||||
|
|
||||||
|
```text
|
||||||
|
git : 无法将“git”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径
|
||||||
|
正确,然后再试一次
|
||||||
|
```
|
||||||
|
|
||||||
|
多半是你没有安装git。来这儿下载它(网盘),安装完成后**重启电脑**,再试一次。
|
||||||
|
|
||||||
|
[https://1823548741.share.123865.com/123pan/XJYFjv-4EA03](https://1823548741.share.123865.com/123pan/XJYFjv-4EA03)
|
||||||
|
|
||||||
BIN
example1.png
Normal file
BIN
example1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
BIN
images/VSCode-new.png
Normal file
BIN
images/VSCode-new.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
BIN
images/example2.png
Normal file
BIN
images/example2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.0 KiB |
BIN
images/open-terminal.png
Normal file
BIN
images/open-terminal.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 71 KiB |
76
markdown-introduction.md
Normal file
76
markdown-introduction.md
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
# Markdown 介绍
|
||||||
|
|
||||||
|
markdown中,前四级标题最为常用。注意井号(#)后面有一个空格
|
||||||
|
|
||||||
|
# 这是一级标题
|
||||||
|
|
||||||
|
## 这是二级标题
|
||||||
|
|
||||||
|
### 这是三级标题
|
||||||
|
|
||||||
|
#### 这是四级标题
|
||||||
|
|
||||||
|
对于文本也有一些常用的格式:
|
||||||
|
|
||||||
|
**加粗文本**
|
||||||
|
|
||||||
|
*斜体文本*
|
||||||
|
|
||||||
|
`行内代码`
|
||||||
|
|
||||||
|
注意,如果想要新起一段,
|
||||||
|
像这样只打一个回车是不行的。
|
||||||
|
|
||||||
|
你需要像这样打两个回车,也就是空一行,才能新起一段。
|
||||||
|
|
||||||
|
### 代码块
|
||||||
|
|
||||||
|
如果你想插入一段代码,又不希望破坏它的结构,就像这样使用代码块:
|
||||||
|
|
||||||
|
```C
|
||||||
|
int main() {
|
||||||
|
printf("Hello Markdown");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
代码块由两个```包裹起来。在前面那个的后面可以指定代码语言,比如上面就指定了C语言。
|
||||||
|
|
||||||
|
### 插入本地图片
|
||||||
|
|
||||||
|
可以使用相对路径插入本地图片:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
如果图片与当前文件在同一目录,也可以直接写文件名:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 其他常用格式
|
||||||
|
|
||||||
|
这是无序列表:
|
||||||
|
|
||||||
|
- 无序列表
|
||||||
|
- 支持多级内容
|
||||||
|
- 第三条
|
||||||
|
- 这是第四条
|
||||||
|
|
||||||
|
1. 有序列表
|
||||||
|
2. 也很常见
|
||||||
|
3. 这是第三条
|
||||||
|
4. 这是第四条
|
||||||
|
|
||||||
|
> 这是引用内容。实际用处不大
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
上面那个三个短杠表示分割线。
|
||||||
|
|
||||||
|
Markdown还有表格的语法:
|
||||||
|
|
||||||
|
| 列1 | 列2 | 列3 |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| a | b | c |
|
||||||
|
| d | e | f |
|
||||||
|
| | | |
|
||||||
|
| g | h | i |
|
||||||
Reference in New Issue
Block a user