一、標題
1.1、標題的寫法:
需要在標題前鍵入“#”,根據#個數的不同區分幾級標題
1.2、在內容下方使用任意個=號將上方內容顯示成一級標題
1.3、在內容下方使用任意個-號將上方內容顯示成一級標題
1.4、mardown還支持3到6,一共6個標題大小級別
1.5、標題的完整書寫格式
使用對應的#號將標題前後包裹起來,格式看起來良好一些。
二、段落
2.1、段落的基本使用
使用空行實現段落分隔效果
2.2、文章實現換行
段落文字後添加兩個或以上的空格顯示爲換行
三、字體強調
3.1、使用兩個*號或者_將要加粗的字體內容加粗
王斌
3.2、使用一個或者_包裹對應內容設置爲意大利斜體字樣
hello world
hello world
hellp world
3.3、使用三個*或者_加粗和斜體效果同時顯示
hello world
hello world
四、引用
4.1、可以使用>符號引用內容
我寫的代碼功能就是輸出 hello world
hello world
4.2、引用多行
我會多門編程語言:
C
Shell
Go
Java
Python
4.3、使用嵌套引用
C
Shell
Go
Java
Python
> Python2.7
> Python3.6
五、列表的使用
5.1、有序列表是用數字和. 構成列表序號
- Unix
- Linux
- C語言
5.2、無序列列表使用* - + 號表示
- Unix
- Linux
-
C語言
- A
- B
-
C
- D
- E
-
F
- 1
- 2
- 3
6、代碼
6.1、使用 ` 包含的內容爲代碼
#!/bin/bash
6.2、當需要創建代碼塊時,每行使用4個空格或一個tab鍵
#!/bin/bash
echo "hello world"
ceshi
ceshi123
7、分割線
使用三個 * 或 - 或 _ 生成下劃線
8、代碼塊
文章中有代碼時,我們可以使用代碼塊包含代碼,使其成爲一個整體,並具備特定的顯示分格
public class HelloWorld {
public static void main (String[] args) {
System.out.println("Hello,World!!!")
}
}
[root@centos7 ~]#cd /
[root@centos7 /]#ll
total 24
lrwxrwxrwx. 1 root root 7 Mar 5 19:42 bin -> usr/bin
dr-xr-xr-x. 5 root root 4096 Mar 6 21:28 boot
drwxr-xr-x. 3 root root 143 Mar 7 17:57 data
drwxr-xr-x. 19 root root 3360 Mar 7 14:12 dev
drwxr-xr-x. 138 root root 8192 Mar 7 17:07 etc
drwxr-xr-x. 3 root root 21 Mar 5 19:51 home
lrwxrwxrwx. 1 root root 7 Mar 5 19:42 lib -> usr/lib
lrwxrwxrwx. 1 root root 9 Mar 5 19:42 lib64 -> usr/lib64
drwxr-xr-x. 2 root root 6 Apr 11 2018 media
drwxr-xr-x. 2 root root 6 Apr 11 2018 mnt
drwxr-xr-x. 3 root root 16 Mar 5 19:46 opt
dr-xr-xr-x. 151 root root 0 Mar 5 17:03 proc
dr-xr-x---. 14 root root 4096 Mar 7 23:30 root
drwxr-xr-x. 41 root root 1240 Mar 6 10:28 run
lrwxrwxrwx. 1 root root 8 Mar 5 19:42 sbin -> usr/sbin
drwxr-xr-x. 2 root root 6 Apr 11 2018 srv
dr-xr-xr-x. 13 root root 0 Mar 5 17:03 sys
drwxr-xr-x. 3 root root 18 Mar 6 21:39 testdir
drwxrwxrwt. 15 root root 4096 Mar 7 17:57 tmp
drwxr-xr-x. 13 root root 155 Mar 5 19:42 usr
drwxr-xr-x. 20 root root 282 Mar 5 22:03 var
[root@centos7 /]#
九、表格
表格是一種常見的數據內容展現形式,Markdown中也可以實現表格,書寫表格的語法如下,使用 |代表每行中的分隔符,在分隔符之間填寫具體的數據就好,在第二行內書寫-表示上一行爲表頭,可以再-的最左邊或者最又面添加一個:來代表下面的內容是左對齊還是右對齊,同時在兩邊添加:冒號時代表居中
ID | NAME | AGE | GENDER | TEL | ADDR |
---|---|---|---|---|---|
000 | Gordon | 33 | M | 12345 | HongKong |
001 | Mage | 23 | M | 2123 | Beijing |
002 | liunx | 43 | M | 213213 | NewYork |
003 | Wang | 45 | M | 213321 | ShangHai |
10、超鏈接
創建一個連接 [] 內寫連接內容 () 內寫連接地址
11、圖片
和鏈接類似,在連接的書寫格式前面加上一個!號即可代表一個圖片