markdown基本语法

Markdown基本语法

1.1 标题

代码:

# 一级标题

## 二级标题

### 三级标题

#### 四级标题

##### 五级标题

###### 六级标题

效果:

一级标题

二级标题

三级标题

四级标题

五级标题
六级标题

1.2 加粗

代码:

**加粗**

效果:
加粗

1.3倾斜

代码:

*倾斜*

效果:
倾斜

1.4 高亮

代码:

==高亮==

效果:
高亮

1.5 上标

代码:

2^5^

效果:
25

1.6 下标

代码:

h~2~o

效果:
h2o

1.7 代码引用(>式)

代码:

> hello world!

效果:

hello world!

代码:

> hello world!

> > hello world!

效果:

hello world!

hello world!

1.8 代码引用(```试)

代码:

​```py
print('hello world')

效果:

print('hello world')

1.9 代码引入(`试)

代码:

`print('hello world!')`

效果:

print('hello world!')

1.10 插入链接(链接显示)

代码:

<https://www.baidu.com>

效果:

https://www.baidu.com

1.11 插入链接(链接描述显示)

代码:

[百度](https://www.baidu.com)

效果:

百度

1.12 插入图片(链接)

代码:

![](C:\Users\LXW\Desktop\timg.jpg)

效果:

1.13 插入图片(图片路径)

绝对路径:.md文本同目录下图片的名字

相对路径:图片在电脑中的路径地址

代码:

![](timg.jpg)
![](C:\Users\LXW\Desktop\timg.jpg)

效果:

1.14 有序列表

代码:

1. one
2. two
3. three

效果:

  1. one
  2. two
  3. three

1.15 无序列表

代码:

* one
* two
* three

效果:

  • one
  • two
  • three

1.16 分割线

代码:

---

效果:


1.17 表格

代码:

name | age | sex 
:-:|:-|-:
tony|20|男
lucy|18|女

效果:

name age sex
tony 20
lucy 18

1.18 数学公式(行内嵌)

代码:

内嵌数学公式$\sum_{i=1}^{10}f(i)\,\,\text{thanks}$

效果:
内嵌数学公式\(\sum_{i=1}^{10}f(i)\,\,\text{thanks}\)

1.19 数学公式(块状)

代码:

$$
\sum_{i=1}^{10}f(i)\,\,\text{thanks}
$$

效果:

\[\sum_{i=1}^{10}f(i)\,\,\text{thanks} \]

posted @ 2019-07-11 20:38  lvxiwei  阅读(185)  评论(0)    收藏  举报