CheatSheets

精选 CheatSheets 常用指令与核心速查备忘单,涵盖高频用法、配置参数与实用技巧。

#魔改语法变体集锦 (Syntax Variants)

#Create source/_posts/demo.md

## 🚀 入门指引

### List Card {.col-span-2}

- Share quick reference
- Cheatsheet for developers ... {.style-timeline}

### Table Card

| id  | name    |
| --- | ------- |
| 1   | Roberta |

{.show-header}

#大组分区变体 (Section Variants)

#分区排版总览 (Section Overview)

- -
{.cols-1} one-column layout
{.cols-2} two-column layout
{.cols-3} three-column layout (default)
...
{.cols-6} six-column layout

  • Section contains multiple cards
  • Use {.cols-n} to specify section as a n-column layout
  • Click the preview button below to focus on the section

#.cols-1

# One Column Example {.cols-1}
╭┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╮
┆  1                                  ┆
╰┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╯
╭┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╮
┆  2                                  ┆
╰┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╯

↓ Source Code

## One Column Example {.cols-1}

### 1

### 2

#.cols-2

# Two Columns Example
╭┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╮
┆  1              ┆ ┆  2              ┆
╰┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╯
╭┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╮
┆  3              ┆
╰┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╯

↓ Source Code

## Two Columns Example {.cols-2}

### 1

### 2

### 3

#.cols-3 (default)

# Default
╭┈┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈┈╮
┆  1       ┆ ┆  2       ┆ ┆  3       ┆
╰┈┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈┈╯
╭┈┈┈┈┈┈┈┈┈┈╮
┆  4       ┆
╰┈┈┈┈┈┈┈┈┈┈╯

↓ Source Code

## Default

### 1

### 2

### 3

### 4

#卡片布局变体 (Card Variants)

#卡片属性总览 (Card Overview)

Specifies the number of columns the card spans

- -
{.col-span-2} Example
{.col-span-3}
...
.col-span-6}

Specifies the number of rows the card spans

- -
{.row-span-2} Example
{.row-span-3}
...
{.row-span-6}

Emphasize card (aka H3 Section)

- -
{.primary} Red titles, Example
{.secondary} Yellow titles, Example

A complete example: Cards Example

#.col-span-2

The fifth card spans two columns

╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮
┆  1      ┆ ┆  2      ┆ ┆  3      ┆
╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯
╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╮
┆  4      ┆ ┆  5                  ┆
╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╯

### 1

### 2

### 3

### 4

### 5 {.col-span-2}

The second card spans two columns

╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╮
┆  1      ┆ ┆  2                  ┆
╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╯
╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮
┆  3      ┆ ┆  4      ┆ ┆  5      ┆
╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯

### 1

### 2 {.col-span-2}

### 3

### 4

### 5

The fourth card spans two columns

╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮
┆  1      ┆ ┆  2      ┆ ┆  3      ┆
╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯
╭┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮
┆  4                  ┆ ┆  5      ┆
╰┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯

### 1

### 2

### 3

### 4 {.col-span-2}

### 5

#.row-span-2

The first card spans two rows

╭┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮
┆ 1      ┆ ┆ 2       ┆ ┆ 3       ┆
┆        ┆ ╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯
┆        ┆ ╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮
┆        ┆ ┆ 4       ┆ ┆ 5       ┆
╰┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯

### 1 {.row-span-2}

### 2

### 3

### 4

### 5

The second card spans two rows

╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮
┆ 1       ┆ ┆ 2      ┆ ┆ 3       ┆
╰┈┈┈┈┈┈┈┈┈╯ ┆        ┆ ╰┈┈┈┈┈┈┈┈┈╯
╭┈┈┈┈┈┈┈┈┈╮ ┆        ┆ ╭┈┈┈┈┈┈┈┈┈╮
┆ 4       ┆ ┆        ┆ ┆ 5       ┆
╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯

### 1

### 2 {.row-span-2}

### 3

### 4

### 5

The third card spans two rows

╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈╮
┆ 1       ┆ ┆ 2       ┆ ┆ 3      ┆
╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯ ┆        ┆
╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮ ┆        ┆
┆ 4       ┆ ┆ 5       ┆ ┆        ┆
╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈╯

### 1

### 2

### 3 {.row-span-2}

### 4

### 5

#.col-span-2 .row-span-2

╭┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮
┆ 1                   ┆ ┆ 2       ┆
┆                     ┆ ╰┈┈┈┈┈┈┈┈┈╯
┆                     ┆ ╭┈┈┈┈┈┈┈┈┈╮
┆                     ┆ ┆ 3       ┆
╰┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯
╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮
┆ 4       ┆ ┆ 5       ┆ ┆ 6       ┆
╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯

↓ Source Code

### 1 {.col-span-2 .row-span-2}

### 2

### 3

### 4

### 5

Spans rows and columns at the same time

#表格样式变体 (Table Variants)

#表格属性总览 (Table Overview)

- -
{.show-header} Show the header of the table
{.shortcuts} Render shortcut key style
{.bold-first} Bold first column
{.plus-first} Plus first column
{.show-header} Show headers
{.left-text} Align the last column left
{.no-wrap} Don't wrap text

#基础表格样式

Pattern Description
[abc] Match a, b or c
[^abc] Match except a, b or c
[a-z] Match a to z

↓ Source Code

| Pattern  | Description            |
| -------- | ---------------------- |
| `[abc]`  | Match a, b or c        |
| `[^abc]` | Match except a, b or c |
| `[a-z]`  | Match a to z           |

#.shortcuts

- -
Ctrl N New File
Ctrl S Save

↓ Source Code

| -          | -        |
| ---------- | -------- |
| `Ctrl` `N` | New File |
| `Ctrl` `S` | Save     |

{.shortcuts}

#.show-header

Pattern Description
[abc] Match a, b or c
[^abc] Match except a, b or c
[a-z] Match a to z

↓ Source Code

| Pattern  | Description            |
| -------- | ---------------------- |
| `[abc]`  | Match a, b or c        |
| `[^abc]` | Match except a, b or c |
| `[a-z]`  | Match a to z           |

{.show-header}

#.left-text

Pattern Description
[abc] Match a, b or c
[^abc] Match except a, b or c
[a-z] Match a to z

↓ Source Code

| Pattern  | Description            |
| -------- | ---------------------- |
| `[abc]`  | Match a, b or c        |
| `[^abc]` | Match except a, b or c |
| `[a-z]`  | Match a to z           |

{.left-text}

#.bold-first

Pattern Description
[abc] Match a, b or c
[^abc] Match except a, b or c
[a-z] Match a to z

↓ Source Code

| Pattern  | Description            |
| -------- | ---------------------- |
| `[abc]`  | Match a, b or c        |
| `[^abc]` | Match except a, b or c |
| `[a-z]`  | Match a to z           |

{.bold-first}

#列表样式变体 (List Variants)

#列表属性总览 (List Overview)

List columns

- -
{.cols-1} one column (default)
{.cols-2} two columns
...
{.cols-6}

List markers

- -
{.marker-none} Marker is not set
{.marker-timeline} Marker style like timeline
{.marker-round} Round marker

#单列列表 (默认样式)

  • Share quick reference.
  • cheat sheet for developers.
  • Contributed by open source angels.
  • Manage your code snippets.

↓ Source Code

- Share quick reference.
- cheat sheet for developers.
- Contributed by open source angels.
- Manage your code snippets.

#.cols-3

  • Share
  • Quick
  • Reference
  • And
  • Cheat Sheet
  • For
  • Developers

↓ Source Code

- Share
- Quick
- Reference
- And
- Cheat Sheet
- For
- Developers

{.cols-3}

#.marker-timeline

  • Renamed to new_name
    $ git branch -m <new_name>
    
  • Push and reset
    $ git push origin -u <new_name>
    
  • Delete remote branch shell script $ git push origin --delete <old>

↓ Source Code

- **Renamed** to `new_name`
  ```shell script
  $ git branch -m <new_name>
  ```
- **Push** and reset
  ```shell script
  $ git push origin -u <new_name>
  ```
- **Delete** remote branch `shell script     $ git push origin --delete <old>     `

{.marker-timeline}

#.marker-none

  • Share
  • Quick
  • Reference
  • And
  • Cheat Sheet

↓ Source Code

- Share
- Quick
- Reference
- And
- Cheat Sheet

{.cols-2 .marker-none}

#.marker-round

  • Share
  • Quick
  • Reference

↓ Source Code

- Share
- Quick
- Reference

{.marker-round}

#代码块变体 (Code Variants)

#基础代码块

warpnav.com.is(() => {
  awesome.site();
});
here.is.some.more();

↓ Source Code

````js
warpnav.com.is(() => {
  awesome.site()
})
\```

```js
here.is.some.more()
\```
````

Code blocks can be placed one after the other.

#带标题的文件代码块

index.js

warpnav.com.is(() => {
  awesome.site();
});

other.js

here.is.some.more();

↓ Source Code

 index.js

```js
warpnav.com.is(() => {
  awesome.site();
});
```

 other.js

```js
here.is.some.more();
```

Code blocks can have headings.

#自动换行代码块 (Line wrapping)

<script>(function(d,s){if(window.Promise&&[].includes&&Object.assign&&window.Map)return;var js,sc=d.getElementsByTagName(s)[0];js=d.createElement(s);js.src='https://cdn.polyfill.io/v2/polyfill.min.js';sc.parentNode.insertBefore(js, sc);}(document,'script'))</script>

↓ Source Code

```js {.wrap}
<script>(function(d,s){if(window.Promise&&[].includes&&Object.assign&&window.Map)return;var js,sc=d.getElementsByTagName(s)[0];js=d.createElement(s);js.src='https://cdn.polyfill.io/v2/polyfill.min.js';sc.parentNode.insertBefore(js, sc);}(document,'script'))</script>
```

Add {.wrap} to wrap long lines.

#长代码单行横向滚动 (默认样式)

function createNode(nodeName: string, options: { key: string }) {
  return true
}

Long lines will have scrollbars.

#段落文本变体 (Paragraph Variants)

#头部标题段落

The text that appears in the header

↓ Source Code

### Basic paragraphs

The text that appears in the header

#中间插页段落

  • This is a list

This paragraph will appear in the middle

cheatsheets.is(() => {
  awesome.site();
});

↓ Source Code

### 中间插页段落

- This is a list

This paragraph will appear in the middle

```js
cheatsheets.is(() => {
  awesome.site();
});
```

#底部脚页段落

cheatsheets.is(() => {
  awesome.site();
});

↓ Source Code

```js
cheatsheets.is(() => {
  awesome.site();
});
```

This paragraph will appear in the footer

This paragraph will appear in the footer

Add {.link-arrow} to make big loud external links:

[Home](/) {.link-arrow}

#卡片综合排版示例 (Cards Example)

#row-span-2

1

#col-span-2

2

#Primary Card

3

Add {.primary} to make the title red.

#Secondary Card

4

Add {.secondary} to make the title yellow.

#col-span-3

5