最近想边写代码,边捋思路,边做记录,就对vscode下手了,恕在下才疏学浅,.md文档现在才开始学,下面是整理的一些学习记录,仅作为学习记录mark一下自己有在认真学,学了总比没学好~
1.标题
一个#到6个#,分别是1-6级标题
- C+K V–打开右侧预览
- 采用多级标题时,可以生成目录;打开预览后,绞起来的按键是目录
- 如果你想要给你的标题添加 id 或者 class,请在标题最后添加 {#id .class1 .class2}。例如:
这个标题拥有 1 个 id {#my_id}
❓添加id有什么用
2.样式本文
这是粗体,左右都两个星号**
这也是粗体,左右两个下划线__
这是斜体
这也是斜体
这是删除
这也是删除
此文本 非常 重要–粗体、斜体相结合
全部使用粗体
3.引用文本
引用文本
?引用有啥用?
4.引用代码
行内引用代码块
使用pip install packages
来下载第三方库
`—这叫反引号,要用英文模式
代码块
*一些基本的 Git 命令为:*
```
git status
git add
git commit
```
突出显示代码块
#python代码块模式
import pandas as pd
a=pd.Series([1,2,3])
显示代码行数
import pandas as pd
a=pd.Series([1,2,3])
5.连接
链接文本包含在方括号 [ ] 内,然后将 URL 包含在括号 ( ) 内,可创建内联链接;当评论中写入了有效 URL 时,GitHub 会自动创建链接
例:
- https://github.com 如果URL正确会自动生成链接
- 本站点是使用 GitHub Pages 构建的
- 少年歌行
相对链接
链接项目内的文件,使用所有相对链接操作符,如 ./ 和 …/来转换相对路径
此项目的参与指南
网址类插入图像
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-55fbOcgf-1651936385404)(https://myoctocat.com/assets/images/base-octocat.svg)]
同库插入图像
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-tarpsVS0-1651936385406)(./model1/2021-09-06%20093845.jpg)]
图片主题 :在URL后添加 #gh-dark-mode-only or #gh-light-mode-only
区分浅色和深色模式,这对于透明的 PNG 图像特别有用。
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-qamx6ISb-1651936385407)(https://github.com/github-light.png#gh-dark-mode-only)]
[GitHub Dark](https://github.com/github-light.png#gh-light-mode-only)
6.列表
无序列表
通过在一行或多行文本前面添加-
或*
可创建无序列表,后面要有个空格
- 要点一
- 要点二
- 要点一
- 要点二
要点二下面的内容会自动和要点二标题缩进
有序列表
要对列表排序,请在每行前面添加一个编号,编号后要有一个空格
- First
- Second
- Third
嵌套列表
- 第一个列表
- 第一个嵌套
- 第二个嵌套
- 嵌套的标记是md自己形成的;
- 直接用Tab来快速缩进
- 第一个嵌套
任务列表
在preview模式中可以点击框框修改状态
- 模式: -空格[空格]空格
- Convert text into issues
- 完成
- (Optional) 如果任务列表项说明以括号开头,则需要使用 \ 进行规避
7.分割线
---
8.标签符号
❓ ❔ ❗️ ❕
❌ ⭕️ ✔️
⬆️ 0️⃣ 1️⃣ 🆚
💡 ⚠️ 🔗 👍
😮 ♻️ ➿ 🔆 ⛔️ 🏧 ⚪️ 🏁 🚩 💊 💰 ⛄️ 🔥 💧 🌊 ☀️
9.添加脚注
注意:Markdown 中脚注的位置不会影响该脚注的呈现位置。 您可以在引用脚注后立即写脚注,脚注仍将呈现在 Markdown 的底部。
这是个例子1.
A footnote can also have multiple lines2.
You can also use words, to fit your writing style more closely3.
10.创建表格
可以用竖线 | 和横线 - 创建表格。 横线用于创建每列的标题,而竖线用于分隔每列。 必须在表格前包含空白链接,以便其正确呈现。
1️⃣
heading 1 | heading 2 |
---|---|
1942 | 1234 |
2️⃣ | |
command | description |
- | - |
git status | list |
git diff | show file |
3️⃣ | |
left | center |
:— | :—: |
左对齐 | 居中对其 |
git diff | git diff |
4️⃣ 要包含竖线 | 作为单元格中的内容,请在竖线前使用 \:
Name | Character |
---|---|
Backtick | ` |
Pipe | | |
5️⃣ colspan >
or empty cell
– 跨列
a | b |
---|---|
> | 1 |
2 |
6️⃣rowspan ^
– 跨行
a | b |
---|---|
1 | 2 |
^ | 4 |
7️⃣混合应用的例子
Method | Description |
---|---|
GET | ⚪️ Fetch resource |
PUT | ⚪️ Update resource |
DELETE | ⚪️Delete resource |
11.上下标
30th
H2O
12.缩略
The HTML specification
is maintained by the W3C.
13.高亮显示文本
marked
这段很重要
14.贴便利贴警告
!!! note This is the admonition title
This is the admonition body
!!! abstract This is the admonition title
This is the admonition body
下面都是便利贴模式
note abstract info tip success question warning failure dangerbug example quote
!!! note “”
删除标题形式
???+ note
折叠警告
15.创建折叠快
CLICK ME
We can hide anything, even code!
```ruby
puts "Hello World"
```
这里可以写文字
默认情况下,Markdown 将折叠。
16.创建 Mermaid 图表
-
流程图
-
序列图
-
用户旅程
-
饼图
Mermaid学习参考 -
流程图
主体:
```mermaid
内容。。。
```
Here is a sample flow chart:
1️⃣
2️⃣
3️⃣
4️⃣
My reference. ↩︎
Every new line should be prefixed with 2 spaces.
This allows you to have a footnote with multiple lines. ↩︎Named footnotes will still render with numbers instead of the text but allow easier identification and linking.
This footnote also has been made with a different syntax using 4 spa ↩︎