前言
今天給大家介紹下markdown的一些基本使用,這些東東是自己在學(xué)習(xí)markdown的時(shí)候做的一些總結(jié),如有錯(cuò)誤肤晓,還望積極指正,謝謝认然。
markdown是什么补憾?
markdown是一種簡(jiǎn)單的標(biāo)記語(yǔ)言。它與html標(biāo)簽對(duì)應(yīng)卷员,我們可以通過(guò)一些轉(zhuǎn)換庫(kù)可以將markdown轉(zhuǎn)換為html或html轉(zhuǎn)換為markdown.
markdown基本的標(biāo)簽使用
1.#
[#] 用于定義標(biāo)題,共1-6個(gè)等級(jí)盈匾,隨著#號(hào)的添加等級(jí)相應(yīng)的減少
注:#號(hào)加[]為了更好標(biāo)注內(nèi)容,切記當(dāng)做語(yǔ)法使用
example:
# 標(biāo)題1
## 標(biāo)題2
### 標(biāo)題3
效果圖:
標(biāo)題1
標(biāo)題2
標(biāo)題3
2.+毕骡、- 削饵、數(shù)字1~9
[+]岩瘦、[-]用于無(wú)序列表,數(shù)字1-9用于有序列表
exmaple1
+ 籃球
+ 足球
+ 排球
效果圖
- 籃球
- 足球
- 排球
example2
- 籃球
- 足球
- 排球
效果圖
- 籃球
- 足球
- 排球
example3
1. 籃球
2. 足球
3. 排球
效果圖
- 籃球
- 足球
- 排球
3. `` 和 ``` ```
example1:單行用 ``
效果圖
var number1 =2;
example2:多行用 ``` ```
效果圖
function(name,age,gender){
this.name = name;
this.age =age;
this.gender = gender;
}
**4.[]() **
[]()用于插入鏈接
語(yǔ)法:[鏈接顯示的文字](url)
example
轉(zhuǎn)載markdown語(yǔ)法說(shuō)明
**5.![]() **
![]()用于插入圖片
example
![安吉麗娜朱莉](http://upload-images.jianshu.io/upload_images/5003721-22f7fe4afa825411.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/12)
效果圖
6.表格使用
example1
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
效果圖
Tables | Are | Cool |
---|---|---|
col 3 is | right-aligned | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
example2
dog | bird | cat
----|------|----
foo | foo | foo
bar | bar | bar
baz | baz | baz
效果圖
dog | bird | cat |
---|---|---|
foo | foo | foo |
bar | bar | bar |
baz | baz | baz |
綜上就是markdown的一些基本標(biāo)簽的使用葵孤,本人還在學(xué)習(xí)階段担钮,后續(xù)還會(huì)補(bǔ)充。轉(zhuǎn)載須說(shuō)明來(lái)源尤仍。