Markdown 语法自学
1.标题
注:#号后空格加正文(最多6级),示例

效果:
Python
Python
Python
Python
Python
Python
####### Python
2.分级标题
注:“=”与“-”至少一个(不能单独使用一级标题),示例

效果;
一级标题
二级标题
3.TOC
注:自动按标题生成目录
[TOC]
4.引用
代码单行引用:

python 你好!
代码多行引用:

python hello!
hello python!
python!
或:

python hello!
hello python!
python!
代码多层嵌套:

python
hello
python hello
5.行内标记
注:使用“`”将代码块变成1行

python hello phthon hello!
6.代码块
注:与上行距离一空行
代码1(```)
注:用```生成块

python
print();
exit();
代码2(tab)
注:四空格缩进

python
print();
exit();
7.插入链接
代码1(内链式)
注:
代码2(引用式)
[百度2][2]{:target="_blank"}
[2]: http://www.baidu.com/ "百度二下"
8.插入图片
代码1(内链式)

[图片上传失败...(image-a8b746-1541428451125)]
9.插入公式
在行中插入公式,直接用
(公式)
在文中插入独立公式,其可以独立成行,

\(公式\)
可自动编号的公式,格式为
\begin{equation}
数学公式
\label{eq:当前公式名}
\end{equation}
10.序表
1. one
2. two
3. three
有序
- one
- two
- three

无序
- on
- two
-
three
序表嵌套
图片.png
- one
- one-1
- two-2
- two
- two-1
- two-2
11.任务列表
代码
- [x] 选项一
- [ ] 选项二
- [ ] [选项3]
12.表格

注: : 代表对齐方式 ,** : 与 | 之间不要有空格**,否则对齐会有些不兼容
代码1
a | b | c |
---|---|---|
居中 | 左对齐 | 右对齐 |
========= | =============== | ============ |
代码2(简约写法)

a | b | c |
---|---|---|
居中 | 左对齐 | 右对齐 |
============ | ================= | ============= |
网友评论