Markdown Cheat Sheet - 快速参考指南,收录常用语法、命令与实践。
# h1
Header 1
========
Header 2
--------
> This is
> a blockquote
>
> > Nested
> > Blockquote
* Item 1
* Item 2
* item 3a
* item 3b
or
- Item 1
- Item 2
or
<!-- prettier-ignore -->_ Item 1
+ Item 2
or
- [ ] Checkbox off
- [x] Checkbox on
1. Item 1
2. Item 2
a. Item 3a
b. Item 3b
[link](http://google.com)
[link][google]
[google]: http://google.com
<http://google.com>
*italic*
_italic_
**bold**
__bold__
`inline code`
~~struck out~~
Hyphens
<!-- prettier-ignore -->---
Asterisks
<!-- prettier-ignore -->***
Underscores
<!-- prettier-ignore -->___
```javascript
console.log('This is a block code');
```
~~~css
.button {
border: none;
}
~~~
4 space indent makes a code block
Escaped code blocks can be done with more back ticks on the outside or a different symbol.
<!-- prettier-ignore -->````markdown
```bash
echo hi
```
````
~~~markdown
```bash
echo hi
```
~~~
`Inline code` has back-ticks around it
| Left column | Center column | Right column |
| :---------- | :-----------: | -----------: |
| Cell 1 | Centered | $1600 |
| Cell 2 | Cell 3 | $12 |
Simple style
<!-- prettier-ignore -->Left column | Center column | Right column
:----------:|:-------------:|:-----------:
Cell 1 | Centered | $1600
Cell 2 | Cell 3 | $12
A markdown table generator: tableconvert.com


[](https://github.com/)
[](link_url)
![alt text][logo]
[logo]: /images/logo.png 'Logo Title'
| Characters | Escape | Description |
|---|---|---|
| <code>\</code> | <code>\\</code> | Backslash |
| <code>`</code> | <code>\`</code> | Backtick |
| <code>*</code> | <code>\*</code> | Asterisk |
| <code>_</code> | <code>\_</code> | Underscore |
| <code>{}</code> | <code>\{\}</code> | Curly braces |
| <code>[]</code> | <code>\[\]</code> | Square brackets |
| <code>()</code> | <code>\(\)</code> | Parentheses |
| <code>#</code> | <code>\#</code> | Hash mark |
| <code>+</code> | <code>\+</code> | Plus sign |
| <code>-</code> | <code>\-</code> | Minus sign (hyphen) |
| <code>.</code> | <code>\.</code> | Dot |
| <code>!</code> | <code>\!</code> | Exclamation mark |