This is the magic syntax variant manual that you can use on CheatSheets.zip, It's a good practice for contributors.
$ git clone https://github.com/Fechin/reference.git
$ npm install
$ npm run dev
source/_posts/{name}.md
It's a good practice to refer to the source code of the CheatSheets reference.
.
├── source
│ ├── _posts # Cheatsheet source files
│ │ ├── awk.md
│ │ ├── vim.md # => cheatsheets.zip/vim
│ │ ├── php.md
│ │ ├── css.md # => cheatsheets.zip/css
│ │ ├── ...
│ └── widget # Widget files
│ └── chmod.html
├── public # Distribution files
├── _config.yml
├── gulpfile.js
├── package.json
├── postcss.config.js
├── tailwind.config.js
└── themes
└── coo # Theme files
.
├── Section 1
│ ├── Card 1
│ ├── Card 2
│ ├── Card 3
│ ├── ...
├── Section 2
│ ├── Card 1
│ │ ├── Paragraph
│ │ ├── Code
│ │ ├── <hr/> (aka "---")
│ │ ├── List
│ │ │ ├── Paragraph
│ │ │ └── Code
│ │ └── Table
│ │ ├── Paragraph
│ │ └── Code
│ ├── Card 2
│ ├── Card 3
│ └── ...
├── Section 3
├── Section 4
└── ...
All the magic variants supported by CheatSheets.zip
Getting Started
---------------
### List Card {.col-span-2}
- Share quick reference
- Cheatsheet for developers
...
{.style-timeline}
### Table Card
| id | name |
|----|---------|
| 1 | Roberta |
{.show-header}
- | - |
---|---|
{.cols-1} |
one-column layout |
{.cols-2} |
two-column layout |
{.cols-3} |
three-column layout (default) |
... | |
{.cols-6} |
six-column layout |
n
} to specify section as a n
-column layout- | - |
---|---|
{.col-span-2} |
Example |
{.col-span-3} |
|
... | |
.col-span-6} |
- | - |
---|---|
{.row-span-2} |
Example |
{.row-span-3} |
|
... | |
{.row-span-6} |
H3
Section)- | - |
---|---|
{.primary} |
Red titles, Example |
{.secondary} |
Yellow titles, Example |
A complete example: Cards Example
╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮
┆ 1 ┆ ┆ 2 ┆ ┆ 3 ┆
╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯
╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╮
┆ 4 ┆ ┆ 5 ┆
╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╯
### 1
### 2
### 3
### 4
### 5 {.col-span-2}
╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╮
┆ 1 ┆ ┆ 2 ┆
╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╯
╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮
┆ 3 ┆ ┆ 4 ┆ ┆ 5 ┆
╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯
### 1
### 2 {.col-span-2}
### 3
### 4
### 5
╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮
┆ 1 ┆ ┆ 2 ┆ ┆ 3 ┆
╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯
╭┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮
┆ 4 ┆ ┆ 5 ┆
╰┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯
### 1
### 2
### 3
### 4 {.col-span-2}
### 5
╭┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮
┆ 1 ┆ ┆ 2 ┆ ┆ 3 ┆
┆ ┆ ╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯
┆ ┆ ╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮
┆ ┆ ┆ 4 ┆ ┆ 5 ┆
╰┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯
### 1 {.row-span-2}
### 2
### 3
### 4
### 5
╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮
┆ 1 ┆ ┆ 2 ┆ ┆ 3 ┆
╰┈┈┈┈┈┈┈┈┈╯ ┆ ┆ ╰┈┈┈┈┈┈┈┈┈╯
╭┈┈┈┈┈┈┈┈┈╮ ┆ ┆ ╭┈┈┈┈┈┈┈┈┈╮
┆ 4 ┆ ┆ ┆ ┆ 5 ┆
╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯
### 1
### 2 {.row-span-2}
### 3
### 4
### 5
╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈╮
┆ 1 ┆ ┆ 2 ┆ ┆ 3 ┆
╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯ ┆ ┆
╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮ ┆ ┆
┆ 4 ┆ ┆ 5 ┆ ┆ ┆
╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈╯
### 1
### 2
### 3 {.row-span-2}
### 4
### 5
╭┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮
┆ 1 ┆ ┆ 2 ┆
┆ ┆ ╰┈┈┈┈┈┈┈┈┈╯
┆ ┆ ╭┈┈┈┈┈┈┈┈┈╮
┆ ┆ ┆ 3 ┆
╰┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯
╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮ ╭┈┈┈┈┈┈┈┈┈╮
┆ 4 ┆ ┆ 5 ┆ ┆ 6 ┆
╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯ ╰┈┈┈┈┈┈┈┈┈╯
### 1 {.col-span-2 .row-span-2}
### 2
### 3
### 4
### 5
Spans rows and columns at the same time
- | - |
---|---|
{.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 |
| Pattern | Description |
|----------|------------------------|
| `[abc]` | Match a, b or c |
| `[^abc]` | Match except a, b or c |
| `[a-z]` | Match a to z |
- | - |
---|---|
Ctrl N |
New File |
Ctrl S |
Save |
| - | - |
|-------------|------------|
| `Ctrl` `N` | New File |
| `Ctrl` `S` | Save |
{.shortcuts}
Pattern | Description |
---|---|
[abc] |
Match a, b or c |
[^abc] |
Match except a, b or c |
[a-z] |
Match a to z |
| Pattern | Description |
|----------|------------------------|
| `[abc]` | Match a, b or c |
| `[^abc]` | Match except a, b or c |
| `[a-z]` | Match a to z |
{.show-header}
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.
- Share
- Quick
- Reference
- And
- Cheat Sheet
- For
- Developers
{.cols-3}
new_name
$ git branch -m <new_name>
$ git push origin -u <new_name>
$ git push origin --delete <old>
- **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}
cheatsheets.zip.is(() => {
awesome.site()
})
here.is.some.more()
```js
cheatsheets.zip.is(() => {
awesome.site()
})
\```
```js
here.is.some.more()
\```
Code blocks can be placed one after the other.
<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>
```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.
The text that appears in the header
### Basic paragraphs
The text that appears in the header
This paragraph will appear in the middle
cheatsheets.is(() => {
awesome.site()
})
### Middle paragraphs
- This is a list
This paragraph will appear in the middle
```js
cheatsheets.is(() => {
awesome.site()
})
\```