Markdown使用

Markdown学习笔记

2016-11-28  本文已影响9人  qin7zhen

Markdown的学习笔记

引用

被引用的语句

> The first sentence.
  > > The second sentence.

The first sentence.

The second sentence.

#include <iostream>
using namespace std;
int main() {
   cout << "hello world" << endl; 
   return 0;
}

脚注

使用[^keyword] 表示注脚。

标题

若一段文字被定义为标题,只需在这段文字前加 # 号即可。

# 一级标题
## 二级标题
...
###### 六级标题 

当前,Markdown支持的最多支持六级标题。

粗体与斜体

列表

在Markdown中,根据表现形式的不同,列表分为有序列表和无序列表两种。

- 第一级
  - 第二级
    - 第三级

图片与链接

表格

示例代码:

| Tables |   Are   | Cool |
| ------ |:-------:| ----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
Tables Are Cool
col 3 is right-aligned $1600
col 2 is centered $12
zebra stripes are neat $1
- 使用` `作为列与列之间的分隔符,列宽是自动适应的。

分割线

格式:***


参考:

《献给写作者的 Markdown 新手指南》http://www.jianshu.com/p/q81RER/
《Markdown——入门指南》http://www.jianshu.com/p/1e402922ee32/
《Markdown进阶学习》http://www.jianshu.com/p/9627fd9b2b59
《简书Markdown编辑模式的几种简单常用语法》http://www.jianshu.com/p/a81e3c89d7c5
《Markdown进阶语法整理》http://www.jianshu.com/p/0b257de21eb5

上一篇 下一篇

猜你喜欢

热点阅读