前言
今天給大家介紹下markdown的一些基本使用,這些東東是自己在學習markdown的時候做的一些總結,如有錯誤,還望積極指正,謝謝。
markdown是什么?
markdown是一種簡單的標記語言。它與html標簽對應,我們可以通過一些轉換庫可以將markdown轉換為html或html轉換為markdown.
markdown基本的標簽使用
1.#
[#] 用于定義標題,共1-6個等級,隨著#號的添加等級相應的減少
注:#號加[]為了更好標注內容,切記當做語法使用
example:
# 標題1
## 標題2
### 標題3
效果圖:
標題1
標題2
標題3
2.+、- 、數字1~9
[+]、[-]用于無序列表,數字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.[]() **
[]()用于插入鏈接
語法:[鏈接顯示的文字](url)
example
轉載markdown語法說明
**5.![]() **
![]()用于插入圖片
example

效果圖
安吉麗娜朱莉
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的一些基本標簽的使用,本人還在學習階段,后續還會補充。轉載須說明來源。