Markdown的语法

1.标题


# 一级标题 
## 二级标题
### 三级标题

一级标题

二级标题

三级标题

2.样式


*斜体* 

**粗体** 

==高亮==

~~删除线~~

> 引用

H~2~O 下标

2^10^ 上标

斜体

粗体

高亮

删除线

引用

H2O 下标

210 上标

3.列表


无序列表
- Item
  * Item
    + Item

有序列表
1. Item 1
2. Item 2
3. Item 3

待办列表:
- [ ] Incomplete item
- [x] Complete item

无序列表

  • Item
    • Item
      • Item

有序列表

  1. Item 1
  2. Item 2
  3. Item 3

待办列表:

4.链接


- 文字链接
A [小白一号的博客](https://home.cnblogs.com/u/EA7-King)
- 图片链接
An image: ![小白一号的头像](https://pic.cnblogs.com/avatar/2434621/20210618224352.png)

A 小白一号的博客

An image: 小白一号的头像

5.代码


单行代码
Some `inline code`.

Some inline code.

代码块
` ` `
// A code block
var foo = 'bar';
` ` `
语言标注
` ` `javascript
// An highlighted block
var foo = 'bar';
` ` `

6.表格


Item     | Value
-------- | -----
Computer | $1600
Phone    | $12
Pipe     | $1


| Column 1 | Column 2      |
|:--------:| -------------:|
| centered | right-aligned |
Item Value
Computer $1600
Phone $12
Pipe $1
Column 1 Column 2
centered right-aligned

7.自定义列表


Markdown
:  Text-to-HTML conversion tool

Authors
:  John
:  Luke
Markdown
Text-to-HTML conversion tool
Authors
John
Luke

8.注脚


Some text with a footnote.[^1]

[^1]: The footnote.

Some text with a footnote.[1]

9.缩写


Markdown converts text to HTML.

*[HTML]: HyperText Markup Language

Markdown converts text to HTML.


  1. The footnote. ↩︎

posted @ 2021-07-08 00:26  为搞钱而写代码  阅读(69)  评论(0)    收藏  举报