順便附上 MacDown的官網,我以爲MacDown挺好用的,推薦給你們!app
#一級標題spa
##二級標題blog
###三級標題圖片
####四級標題文檔
#####五級標題get
######六級標題it
***io
###使用分割線class
***object
###使用*加空格 來使用無序列表
* 1
* 2
* 3
***
###用數字加.加空格 來使用有序列表
1. 1
2. 2
3. 3
4. 4
***
###使用引用
> 引用須要使用>和空格
***
###插入連接
[baidu](http://baidu.com)
***
###插入在線圖片
![icon](https://www.baidu.com/img/bd_logo1.png)
***
###使用粗體、斜體
**這就是粗體**
*這就是斜體*
***這就是斜粗體***
***
##Task list
* [x] finished
* [ ] unfinished
~~使用刪除線~~
***
###使用代碼框
#####這種不支持代碼的語法高亮
~~~
@IBAction func showMessage(){let alertController = UIAlertController(title: "welcome to my first app", message: "hello world", preferredStyle: UIAlertControllerStyle.Alert)
alertController.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.Default, handler: nil))
self.presentViewController(alertController, animated: true, completion: nil)
}
~~~
```objectivec <--- 這裏輸入須要高亮的語言的名稱就能夠高亮了,可是還要到設置裏啓用語言高亮選項才行
@IBAction func showMessage(){let alertController = UIAlertController(title: "welcome to my first app", message: "hello world", preferredStyle: UIAlertControllerStyle.Alert)
alertController.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.Default, handler: nil))
self.presentViewController(alertController, animated: true, completion: nil)
}
```若是須要使用語法高亮,這個文檔有必要看看: 點擊查看文檔 - 該頁的Syntax Highlighting部分可查看支持高亮的語法以及名稱
注意事項:
任務清單和代碼高亮都須要開啓設置選項才行,如圖:
若是刪除線沒有正常顯示,那就打開設置開啓該選項(如圖,選項:Strikethrough)。可是建議所有開啓!