MD相關語法

原文連接:https://www.jianshu.com/p/96ecaa2cc989

  1. 標題


一個#表示一級標題,最多6個表示6級標題 javascript

h1

h2

h3
h4
h5
h6
  1. 列表


  • 無序列表,用 * + - 均可以表示
    • 列表
      • 次級
      • 次級
    • 列表
  • 有序列表,用數字.表示,【列表用四個空格能夠再分級】
    1. 列表
      1. 次級
      2. 次級
    2. 列表
    3. 列表
  1. 區塊引用


用>表示引用,多層引用就用多個>
> 一級引用
>> 二級引用
>>> 三級引用 java

一級引用 npm

二級引用 promise

三級引用google

  1. 分割線


用三個 * (或 - 或 _) 表示 url

***
---
___code




  1. 連接


  1. 圖片


![圖片文字](url)
與連接同樣只是在開頭多了個!
好比:![百度](http://baidu.com/....) blog

百度 圖片

  1. 代碼框


開頭結尾用`,單行用一個`,多行用三個```
1. 單行:開頭結尾用一個反引號` ip

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

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

2. 多行:開頭與結尾分別用三個反引號\```單獨佔一行,可指定或不指定語言,好比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
center left right
center left right
center left right
  • 方式二
    head|head|head
    ---|:---:|---|
    cell|cell|cell
    cell|cell|cell
head head head
cell cell cell
cell cell cell
  • 方式三
    head|head|head
    -|-:|:-:|
    cell|cell|cell
    cell|cell|cell
head head head
cell cell cell
cell cell cell
  1. 強調


開頭結尾用*(或者_),*表示斜體,**表示加粗,***表示斜體加粗

  • 用*表達
  1. *em*
  2. **strong**
  3. ***斜體加粗***
  1. em
  2. strong
  3. 斜體加粗
  • 用_表達
  1. _em_
  2. __strong__
  3. ___斜體加粗___
  1. em

  2. strong

  3. 斜體加粗

  4. 轉義


基本與js的轉義同樣

  1. 刪除線


開頭結尾用~~

~~待刪除~~

刪除線

相關文章
相關標籤/搜索