Markdown简介
Markdown is a lightweight markup language with plain text formatting syntax designed so that it can be converted to HTML and many other formats using a tool by the same name.[8][9] Markdown is often used to format readme files, for writing messages in online discussion forums, and to create rich text using a plain text editor. —— 维基百科
- Markdown 的目标是实现「易读易写」
- 兼容 HTML
- 特殊字符自动转换
Markdown快速使用参考
标题
一级标题
二级标题
三级标题
四级标题
五级标题
六级标题
复选框
使用 - [ ] 和 - [x] 语法可以创建复选框,实现 todo-list 等功能。例如:
- [x] 已完成事项
- [ ] 待办事项1
- [ ] 待办事项2
粗体、斜体
我是斜体1
我是斜体2
我是粗体
列表
- 无序列表-01
- 无序列表-02
- 无序列表-03
有序列表-01
有序列表-02
区块引用
这是一段引用1
这是一段引用2
超链接
图片

我是一张图片
表格
| Table | Table | Table |
|---|---|---|
| left | center | right |
| left | center | right |
| left | center | right |
代码块
var test = function(){
console.log(' It's a markdown test! ');
};