八宝粥

md语法简单总结

2017-11-09  本文已影响0人  遇酒无缘

好记性不如烂笔头

  1. 标题


一个#表示一级标题,最多6个表示6级标题

# h1
## h2
### h3
#### h4
##### h5
###### h6

h1

h2

h3

h4

h5
h6
  1. 列表


  1. 区块引用


用>表示引用,多层引用就用多个>
> 一级引用
>> 二级引用
>>> 三级引用

一级引用

二级引用

三级引用

  1. 分割线


用三个 * (或 - 或 _) 表示

***
---
___




  1. 链接


[1]: http://google.com/ "google"
[2]: http://yahoo.com/ "yahoo"
[3]: http://msn.com/ "msn"
  1. 图片


![图片文字](url)
与链接一样只是在开头多了个!
比如:![百度](http://baidu.com/....)

百度
  1. 代码框


开头结尾用`,单行用一个`,多行用三个```
1. 单行:开头结尾用一个反引号`

` console.log('talk is cheap, show me the code') `

console.log('talk is cheap, show me the code')

  1. 多行:开头与结尾分别用三个反引号```单独占一行,可指定或不指定语言,比如javascript

``` javascript
for(let i in skills){
    console.log('wanderful skill: ' + skills[I]);
}
```

for(let i in skills){
    console.log('wanderful skill: ' + skills[I]);
}

```
npm install sftp-client-promise
```

npm install sftp-client-promise
  1. 表格


用:的不同位置来改变对齐方式,默认左对齐(:-),右对齐(-:),居中对齐(:-:)

head head head
center left right
center left right
center left right
head head head
right center left
right center left
head head head
left right center
left right center
  1. 强调


开头结尾用*(或者_),*表示斜体,**表示加粗,***表示斜体加粗

  1. *em*
  2. **strong**
  3. ***斜体加粗***
  1. em
  2. strong
  3. 斜体加粗
  1. _em_
  2. __strong__
  3. ___斜体加粗___
  1. em

  2. strong

  3. 斜体加粗

  4. 转义


基本与js的转义一样

  1. 删除线


开头结尾用~~

~~待删除~~

删除线

  1. 颜色

颜色表示复杂一点:$\color{颜色}{内容}$
$开头$结尾,第一个{}填颜色,第二个{}填写内容

$\color{red}{talk}$ is cheap, $\color{rgba(0,255,0,.8)}{show}$me the $\color{#ff0000}{code}$

\color{red}{talk} is cheap, \color{rgba(0,255,0,.8)}{show}me the \color{#ff0000}{code}

$\color{#00CED1}{颜色的表示就是这些}$

\color{#00CED1}{颜色的表示就是这些}

上一篇 下一篇

猜你喜欢

热点阅读