Markdown-Cheatsheet2019-04-25 12:15Dev, Markdown, Cheatsheet

Markdown-Cheatsheet

标题

# Header 1 #

## Header 2 ##

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

#### Header 4 ####

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

链接

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

文本格式

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

内容引用

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

各种列表


* 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

代码框


And now some code:

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

分割线


* * * *

****

-----

表格

| 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 图片引用

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

然后直接用相对路径就行了


![](./PostFolder/001.png)       # 用这个方法
{% asset_img Image013.png %}    # 不要用这个方法!!!

tags 标签

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

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

// 错误的用法
tags: [jekyll, tags, user experience]

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

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

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

Cheatsheet-Jekyll (Kramdown)

关于标题

从二级标题开始写

一级标题在目录不会编号

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

特定宽度的图片

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

图片注释

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

代码高亮

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

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

脚注

text[^1]

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

表格输出

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

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

Github Flavor

折叠文本

记得以下几个 tag 前后空一行, 支持折叠复杂 Markdown

<details>
<summary>Get Comments per Post</summary>

[/api/disqusProxy/getComments](/api/disqusProxy/getComments)

- **Description:** Get comments for specfic posts
- **Method:** GET
- **Params:**
  - identifier
  - limit? = 100

</details>
Powered by Remix
|
Designed by szhshp
|
Copyright © szhshp 2022