logo

Markdown Cheat Sheet


title: Markdown date: 2020-12-14 18:28:43 background: bg-[#6319bf] tags: - md - Markup - text - format categories: - Programming intro: This is a quick reference cheat sheet to the Markdown syntax. plugins: - copyCode - runCode

Markdown Quick Reference

Headers (atx style)

# h1
## h2
### h3
#### h4
##### h5
###### h6

Headers (setext style)

Header 1
========

Header 2
--------

Blockquotes

> This is  
> a blockquote
>
> > Nested  
> > Blockquote

Unordered List {.row-span-2}

* Item 1
* Item 2
  * item 3a
  * item 3b

or

-   Item 1
-   Item 2

or

_ Item 1
+ Item 2

or

-   [ ] Checkbox off
-   [x] Checkbox on

Ordered List

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>

Emphasis

*italic*  
_italic_

**bold**  
__bold__

`inline code`  
~~struck out~~

Horizontal line

Hyphens

---

Asterisks

***

Underscores

___

Code

```javascript
console.log('This is a block code');
```
~~~css
.button {
  border: none;
}
~~~
    4 space indent makes a code block

Escaped code

Escaped code blocks can be done with more back ticks on the outside or a different symbol.

````markdown
```bash
echo hi
```
````

~~~markdown
```bash
echo hi
```
~~~

Inline code

`Inline code` has back-ticks around it

Tables

| Left column | Center column | Right column |
| :---------- | :-----------: | -----------: |
| Cell 1      |   Centered    |        $1600 |
| Cell 2      |    Cell 3     |          $12 |

Simple style

Left column | Center column | Right column
:----------:|:-------------:|:-----------:
   Cell 1   |   Centered    |    $1600
   Cell 2   |    Cell 3     |     $12

A markdown table generator: tableconvert.com

Images {.col-span-2}

![GitHub Logo](/images/logo.png)

![Alt Text](url)
[![GitHub Logo](/images/logo.png)](https://github.com/)

[![Alt Text](image_url)](link_url)

Reference style

![alt text][logo]

[logo]: /images/logo.png 'Logo Title'

Backslash escapes

CharactersEscapeDescription
\\\Backslash
`\`Backtick
*\*Asterisk
_\_Underscore
{}\{\}Curly braces
[]\[\]Square brackets
()\(\)Parentheses
#\#Hash mark
+\+Plus sign
-\-Minus sign (hyphen)
.\.Dot
!\!Exclamation mark

{.show-header}

🛠️ 开发工具

Markdown

Markdown Cheat Sheet - 快速参考指南,收录常用语法、命令与实践。

📂 分类 · 开发工具🧭 Markdown 速查🏷️ 2 个标签
#markdown#docs
向下滚动查看内容
返回全部 Cheat Sheets

Markdown Quick Reference

Headers (atx style)
<!-- prettier-ignore -->
MARKDOWN
滚动查看更多
# h1

h2

h3

h4

h5
h6
CODE
滚动查看更多
Headers (setext style)
<!-- prettier-ignore -->
MARKDOWN
滚动查看更多
Header 1
========

Header 2
--------
Blockquotes
MARKDOWN
滚动查看更多
> This is  
> a blockquote
>
> > Nested  
> > Blockquote
Unordered List
<!-- prettier-ignore -->
MARKDOWN
滚动查看更多
* Item 1
* Item 2
  * item 3a
  * item 3b

or

MARKDOWN
滚动查看更多
-   Item 1
-   Item 2

or

<!-- prettier-ignore -->
MARKDOWN
滚动查看更多
_ Item 1
+ Item 2

or

MARKDOWN
滚动查看更多
-   [ ] Checkbox off
-   [x] Checkbox on
Ordered List
MARKDOWN
滚动查看更多
1. Item 1
2. Item 2  
   a. Item 3a  
   b. Item 3b
Links
MARKDOWN
滚动查看更多
[link](http://google.com)

[link][google]  
[google]: http://google.com

<http://google.com>
Emphasis
<!-- prettier-ignore -->
MARKDOWN
滚动查看更多
*italic*  
_italic_

**bold**  
__bold__

`inline code`  
~~struck out~~
Horizontal line

Hyphens

<!-- prettier-ignore -->
MARKDOWN
滚动查看更多
---

Asterisks

<!-- prettier-ignore -->
MARKDOWN
滚动查看更多
***

Underscores

<!-- prettier-ignore -->
MARKDOWN
滚动查看更多
___
Code
MARKDOWN
滚动查看更多
```javascript
console.log('This is a block code');
```
<!-- prettier-ignore -->
MARKDOWN
滚动查看更多
~~~css
.button {
  border: none;
}
~~~
MARKDOWN
滚动查看更多
    4 space indent makes a code block
Escaped code

Escaped code blocks can be done with more back ticks on the outside or a different symbol.

<!-- prettier-ignore -->
MARKDOWN
滚动查看更多
````markdown
```bash
echo hi
```
````

~~~markdown
```bash
echo hi
```
~~~

Inline code

MARKDOWN
滚动查看更多
`Inline code` has back-ticks around it
Tables
MARKDOWN
滚动查看更多
| Left column | Center column | Right column |
| :---------- | :-----------: | -----------: |
| Cell 1      |   Centered    |        $1600 |
| Cell 2      |    Cell 3     |          $12 |

Simple style

<!-- prettier-ignore -->
MARKDOWN
滚动查看更多
Left column | Center column | Right column
:----------:|:-------------:|:-----------:
   Cell 1   |   Centered    |    $1600
   Cell 2   |    Cell 3     |     $12

A markdown table generator: tableconvert.com

Images
MARKDOWN
滚动查看更多
![GitHub Logo](/images/logo.png)

![Alt Text](url)

Image with link

MARKDOWN
滚动查看更多
[![GitHub Logo](/images/logo.png)](https://github.com/)

[![Alt Text](image_url)](link_url)

Reference style

MARKDOWN
滚动查看更多
![alt text][logo]

[logo]: /images/logo.png 'Logo Title'
Backslash escapes
CharactersEscapeDescription
<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

{.show-header}

相关 Cheat Sheets