由来
由于前段时间工作忙,快一个月没更新博客了,貌似有些忘了MarkDown的语法,这里记录下MarkDown语法作备忘录,以后方便查找。
常用语法
标题语法
1 | #一级标题 |
分割线
使用*加空格,来表示无序列表
1
2
3
用数字加.加空格,来表示有序列表
1
2
3
4
使用引用
引用需要使用>和空格
插入链接
插入在线图片
使用粗体、斜体
这就是粗体
这就是斜体
这就是斜粗体
Task list
- finished
- unfinished
这个是删除线
使用代码框,PS:这种不支持代码的语法高亮
~~~
@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)
}`