您的位置:首页 > 其它

MarkDown的使用

2018-01-17 10:36 134 查看

1. 标题头语法

一级标题
# This  is an <h1> tag
二级标题
## This is an <h2> tag
...
六级标题
###### This is an <h6> tag


2.斜体语法

_The text will be italic_


The text will be italic

3. 加粗语法

The  **text** will be bold


The text will be bold

4. 排序语法

有序排列
- 这是1xxx
- 这是2xxx
- 这是3xxx
无序排列
- Item1
- Item2
- Item3
或者通过ctrl + u 快捷键(mac:command + u),也可以达到显示列表的作用
— other Item1
— other Item2


这是1xxx

这是2xxx

这是3xxx

Item1

Item2

Item3

other Item1

other Item2

5. images

![GitHub Logo](https://octodex.github.com/images/yaktocat.png)




6. Link语法

http://github.com - automatic!
[GitHub](http://github.com)


GitHub

7. 代码块语法

> we are strong
> 1
> 2
> 4
> 8


we are strong

1

2

4

8

8 单行代码块

` element here instead `


element here instead


9.语法高亮显示

```
function hello(){
console.log('hello world');
}
```


function hello(){
console.log('hello world');
}


10. 表格

age  | name  | gender
-----|-----  | -----
14   | sun | female


agenamegender
14sunfemale

11. 删除线

~~this~~


this

12.下划线

<u>hahhaa</u>


hahahha

13. 定义文本颜色语法

<font color="red" size="14">I hello</font>
size大小范围应该是1-7.超过7之后,字体大小没有实质变化


I hello
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  markdown