1. Environment configuration
1.1 Software installation
- VSCODE download link
- VSCODE plugin
- Paste Image Paste: ctrl+alt+v
- Markdown All in One
- Markdown Preview Enhanced
1.2 Create .md files locally
- Create a new local foldermy_article, Used to store markdown documents
- Open via vscodemy_articleFolder, named first.md
- Use the shortcut key ctrl+kv to open the preview on the right (convenient to view the format)
2. markdown
2.1 Grammar basis
# 一级标题
## 二级标题
### 三级标题
#### 四级标题
##### 五级标题
###### 六级标题
[toc] 生成目录
*** 分割线
[超链接网址](http://...)
![](1.jpg)
[^1]
[^1]:脚注
*斜体*
**加粗**
***斜体加粗***
~~删除线~~
==高亮==
<u>下划线</u>
$$ latex公式 (双$$是居中)$$
$ latex公式(左对齐) $
上角标 30^th^
下角标 H~2~O
表格
表头1| 表头2 | 表头3 |
:----|:----:|----:|
:- 左对齐 等价于 -
:-: 居中
-:右对齐
2.2 Table display
Common grammar |
Format effect |
~~删除线~~ |
Strikethrough |
*斜体* |
Italic |
**加粗** |
Bold |
***斜体加粗*** |
Italic bold |
==高亮== |
Highlight |
<u>下划线</u> |
Underscore |
上角标2^2^ |
22 |
下角标H~2~O |
H 2 O |
$$ x = {-b \pm \sqrt{b^2-4ac} \over 2a}. $$ |
x = − b ± b 2 − 4 a c 2 a x = {-b \pm \sqrt{b^2-4ac} \over 2a} x=2 a−b±b2−4ac
|
[^1] |
|
3. Output in PDF format
- inpreview enhanced windowRight click to selectOpen in Browser
- After opening in the browser,ctrl+p, Select Save as PDF, tick to cancel header and footer, and save the output.