MarkDown 語法

標題

# This is an H1
## This is an H2
###### This is an H6

文本塊

使用一對各三個的反引號(```),例如:

我是文本塊
我是文本塊
我是文本塊

文字高亮

文字高亮功能能使行內部分文字高亮,使用一對反引號(`),例如:

文字高亮

引用塊

> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.

> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
id sem consectetuer libero luctus adipiscing.

換行

直接回車不能換行, 可以在上一行文本後面補兩個空格, 這樣下一行的文本就換行了,或者就是在兩行文本直接加一個空行,也能實現換行效果,但是這個行間距有點大。

列表

無序列表
* Red
* Green
* Blue
有序列表
1. Bird
2. McHale
3. Parish

橫線

下面每一行都會得到一個水平線

***
___
---



鏈接

這是一個 [連接顯示文字](http://example.com/ "Title") 行內鏈接。
[連接顯示文字](http://example.net/) 沒有title屬性。
<http://example.com/> 自動鏈接

強調

*single asterisks*
_single underscores_
**double asterisks**
__double underscores__

圖片

行內圖片
[圖片上傳失敗...(image-75d43a-1536648559701)]
[圖片上傳失敗...(image-6b391-1536648559701)]
引用圖片
![Alt text][id]

表格

| Left-Aligned | Center Aligned | Right Aligned |
| :------------ |:---------------:| -----:|
| col 3 is | some wordy text | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |

Left-Aligned

Center Aligned

Right Aligned

col 3 is

some wordy text

$1600

col 2 is

centered

$12

zebra stripes

are neat

$1

刪除線

文本兩端加上兩個~~即可,例如:

刪除我

~~刪除我~~

github 特有的特性

複選框列表 在列表符號後面加上 [] 或者 [x] 代表選中或者未選中情況

* [x] C
* [x] C++
* [x] Java
* [x] Qt
* [x] Android
* [ ] C#
* [ ] .NET
  • [x] C
  • [x] C++
  • [x] Java
  • [x] Qt
  • [x] Android
  • [ ] C#
  • [ ] .NET

emoji表情

github 的 Markdown 語法支持添加 emoji 表情,輸入不同的符號碼(兩個冒號包圍的字符)可以顯示出不同的表情。

比如,:blush:

:blush:

參考資料

在線編輯器

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章