Markdown学习笔记¶
Writed on 250202
Author: Jack_hui
依照https://thu-ios.github.io/tutorials/lecture/markdown.html上的讲义,跟着打一遍很快能上手
具体语法¶
标题¶
1~6个#加一个空格再加上标题的名称
加粗和斜体¶
| Text Only | |
|---|---|
This text will be italic This will also be italic
This text will be bold This will also be bold
You can combine them
对于_和*,斜体用一对即可表示,而粗体需要用两对表示。
列表¶
Unordered无序列表¶
- Item 1
- Item 2
- Item 2a
- Item 2b
有序列表¶
- Item 1
- Item 2
- Item 3
- Item 3a
- Item 3b
任务列表¶
-
this is a complete item
-
this is an incomplete item
这里注意:如果在mkdocs里对md文件添加任务列表,需要在mkdocs.yml添加如下依赖
链接¶
[Text](url):中括号,后面小括号。小括号里面放链接,中括号里面必须放说明;不需要说明可直接写链接
https://github.com
注意,只写链接不加<>无法点击
图片¶
:感叹号,中括号,小括号。小括号里面放图片链接,中括号里面放图片说明(不必须;写了的话会在图片下方或某处显示说明,当因为某种原因图片无法加载的时候,显示时也会用说明替代图片)
| Text Only | |
|---|---|

行内代码¶
| Text Only | |
|---|---|
行内代码是行内代码
代码块¶
用一对三个反撇```包裹,在最开始三个反撇后可以加代码的语言名称或简写以在渲染时获得高亮支持。
```c++
int main(){
return 0;
}
```
注意:在mkdocs中还需要添加如下依赖
| Text Only | |
|---|---|
一般支持的代码高亮会有很多,比如:shell、bash、c、cpp、java、objectivec、python、swift、yaml、html、xml等
引用¶
作者:...
日期:...
一般用来在开头注明时间作者等信息
表格¶
| Text Only | |
|---|---|
| First Header | Second Header |
|---|---|
| Content from cell 1 | Content from cell 2 |
| Content in the first column | Content in the second column |
markdown不太注重排版,调格式需要自己写html相关静态页面代码