跳转至

Markdown Guide

Headers (atx style)

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

Headers (setext style)

Header 1
========
Header 2
--------

Blockquotes

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

This is a blockquote

Nested Blockquote

Unordered List

- Item 1
- Item 2
    - item 3a
    - item 3b
  • Item 1
  • Item 2
    • item 3a
    • item 3b

or

* Item 1
* Item 2

or

+ Item 1
+ Item 2

or

- [ ] Checkbox off
- [x] Checkbox on
  • Checkbox off
  • Checkbox on

Ordered List

1. Item 1
2. Item 2
3. Item 3
  1. Item 1
  2. Item 2
  3. Item 3
[link](http://example.com)

<http://example.com>

link

http://example.com

Emphasis

*italic*
_italic_

italic

**bold**
__bold__

bold

~~struck out~~

struck out

Horizontal line

Hyphens

---

Asterisks

***

Underscores

___

Code

```javascript
console.log("This is a block code")
```

inline code

`Inline code` has back-ticks around it

Inline code has back-ticks around it

Tables

| Left column | Center column | Right column |
|:------------|:-------------:|-------------:|
| Cell 1      |   Centered    |        $1600 |
| Cell 2      |    Cell 3     |          $12 |
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
Left column Center column Right column
Cell 1 Centered $1600
Cell 2 Cell 3 $12

A markdown table generator: tableconvert.com

Images

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

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

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

[![Logo](https://www.wxc.tsinghua.edu.cn/images/logo.png)](https://www.wxc.tsinghua.edu.cn)

Logo

Backslash escapes

Characters Escape Description
\ \\ backslash
` \` backtick
* \* asterisk
_ \_ underscore
{} \{} curly braces
[] \[] square brackets
() \() parentheses
# \# hash mark
+ \+ plus sign
- \- minus sign \(hyphen\)
. \. dot
! \! exclamation mark

评论