markdown

教程 2024-07-15

Markdown基础语法及演示

Headings

H1

H2

H3

H4

H5
# H1
## H2
### H3
#### H4
##### H5

Heading IDs

H3 {#3}

### H3 {#3}

Bold

Bold text

**Bold text**

Italic

Italic text

*Italic text*

Bold and Italic

Really important

***Really important***

Blockquotes

No pains,no gains.

>No pain,no gain.

Blockquotes with Multiple Paragraphs

No pains,no gains.

Never say die.

>No pains,no gains.
>
>Never say die.

Nested Blockquotes

No pains,no gains.

Never say die.

>No pains,no gains.
>
>>Never say die.

Blockquotes with Other Elements

Ritle

  • Paragraph1
  • Paragraph2

Nothing is impossible.

>### Title
>
>- Paragraph1
>- Paragraph2
>
>*Nothing* is **impossible**.

Lists

Ordered Lists

  1. First item
  2. Second item
  3. Third item
    1. Indented item1
    2. Indented item2
1. First item
2. Second item
3. Third item
   1. Indented item1
   2. Indented item2

Unordered Lists

  • First item
  • Second item
  • Third item
    • Indented item1
    • Indented item2
- First item
- Second item
- Third item
  - Indented item1
  - Indented item2

Task Lists

  • item1
  • item2
  • item3
- [x] item1
- [ ] item2
- [ ] item3

Adding Elements in Lists

Paragraphs

  • First item

  • Second item

    I need to add another paragraph below the second list item.

  • Third item

- First item

- Second item

  I need to add another paragraph below the second list item.

- Third item

Blockquotes

  • First item

  • Second item

    I need to add another paragraph below the second list item.

  • Third item

- First item

- Second item

  I need to add another paragraph below the second list item.

- Third item

Code

This is a code.

`This is a code.`

Escaping Backticks

Use code in your Markdown file.

Use `code` in your Markdown file.

Horizontal Rules



***
---

Links

Description

[Description](Url)

Adding Titles

Description

[Description](https://www.example.com "Titles")

URLs and Email Addresses

https://www.example.com

example@example.com

<https://www.example.com>

<example@example.com>

This is the Description

This is the **[Description](https://www.example.com)**

It was collected by example

It was collected by [example][1]

[1]:https://www.example.com

Images

Description

![Description](https://www.example.com)

Tables

Syntax Description
Header Title
Paragraph Text
| Syntax      | Description |
| :-----------: | :-----------: |
| Header      | Title       |
| Paragraph   | Text        |
Alignment:
Left,Center,Right
|:---|,|:---:|,|---:|

Fenced Code Blocks

Code1
Code2
Code3
​```
Code1
Code2
Code3
​```

Footnotes

Here is a simple footnote.[^1]

[^1]:This is the first footnote.

Strikethrough

~~Words~~

~~Words~~

Emoji

That is so funny! :joy:

That is so funny! :joy:
:emoji shortcodes:

Highlight

==Words==

==Words==

Subscript

H~2~O

H~2~O

Superscript

X^2^

X^2^

评论

0/500