Markdown-Cheatsheet
文章目录

Markdown-Cheatsheet

标题

1
2
3
4
5
6
7
8
9
# Header 1 #

## Header 2 ##

### Header 3 ### (Hashes on right are optional)

#### Header 4 ####

##### Header 5 #####

链接

1
[Link back to H2](#id-goes-here)

文本格式

1
2
Now some inline markup like _italics_,  **bold**, and `code()` . Note that underscores in
words are ignored in Markdown Extra.

内容引用

1
2
> Blockquotes are like quoted text in email replies
>> And, they can be nested

各种列表

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

* an asterisk starts an unordered list
* and this is another item in the list
+ or you can also use the + character
- or the - character

To start an ordered list, write this:

1. this starts a list *with* numbers
+ this will show as number "2"
* this will show as number "3."
9. any number, +, -, or * will keep the list going.
* just indent by 4 spaces (or tab) to make a sub-list
1. keep indenting for more sub lists
* here i'm back to the second level

To start a check list, write this:

- [ ] this is not checked
- [ ] this is too
- [x] but this is checked

代码框

1
2
3
4
5

And now some code:

// Code is just text indented a bit
which(is_easy) to_remember();

分割线

1
2
3
4
5
6

* * * *

****

-----

表格

1
2
3
4
5
6
7
| Header | Header | Right  |
| ------ | ------ | -----: |
| Cell | Cell | $10 |
| Cell | Cell | $20 |

* Outer pipes on tables are optional
* Colon used for alignment (right versus left)

Cheatsheet-Hexo

Hexo 图片引用

1
2
3
图片 `Image013.png` 需要放置在和 `post 名字 ` 相同的文件夹中。

{% asset_img Image013.png %}

tags 标签

如果 首页 tags 地方出现几个空 tag

那我很可能就是之前加的一些标签里面还有空格, 如果还有空格的话, 最好用一个单引号将它包起来.

1
2
3
4
5
6
7
8
9
10
11
12
13
// 错误的用法
tags: [jekyll, tags, user experience]

// 正确的用法
tags: [jekyll, tags, 'user-experience']

// 下面的方法也是正确的
tags:

* backup
* bitbucket-backup
* roboshell-backup
* source-control

Cheatsheet-Jekyll (Kramdown)

关于标题

从二级标题开始写

一级标题在目录不会编号

引用文献写成一标题二级标题都可以。

特定宽度的图片

1
![](http://7sbmib.com1.z0.glb.clouddn.com/Image%2020160325%201425.jpg){: width="700px"}

图片注释

1
2
![](http://7sbmib.com1.z0.glb.clouddn.com/portrait.jpg)
*Enjoy It!*

代码高亮

2019 V2 版本之后已经再也不需要使用 pre tag 来高亮了

1
2
3
{
这里面放置各种不同的代码。
}

脚注

1
2
3
text[^1]

[^1]: links or details or descs(必须要带冒号)

表格输出

1
2
3
4
5
{: .table .table-striped}
|Port | Content served by | queries/second |
| ------------------------------------------|
| 80 | Apache | 130 |
| 8080 | Varnish | 6200 |

另外还有很多用法, 可以参考这文章