Markdown基础语法

---
author: Hadjshell
title: Markdown Syntax
version: 1.0
since: 9/9/2021

---

# 这是一个一级标题

***

```markdown
分割线*** or ---
```

## 这是一个二级标题

### 这是一个三级标题

#### 这是一个四级标题

##### 这是一个五级标题

###### 这是一个六级标题

```markdown
最多支持六级标题,n个`#` + `space` + 文字 = n级标题
```

### 删除线

~~word~~ 

```markdown
~~文字~~ 
```

### 斜体

*文字* 

```markdown
*文字*
```

### 加粗

**文字**

```markdown
**文字**
```

### 斜体 + 加粗

***文字***

```markdown
***文字***
```

### 下划线

下划线使用HTML语法

<u>文字</u>

```markdown
<u>文字</u> 
```

或者使用快捷键 `ctrl` + `u` 

### 高亮

==文字==

```markdown
==文字==
```

### 下标

H~2~O

H~2~O~2~ 

```markdown
H~2~O
H~2~O~2~
```

### 上标

m^2^

```markdown
m^2^
```

### emoji

:smile: :smile_cat: 

```markdown
:smile:
```

typora 可以使用 `win` + `.` 查看表情库

### 表格

| name    | price |
| ------- | ----- |
| chicken | 9     |
| fries   | 2     |

```markdown
| name | price |
| ---- | ---- |
| chicken | 9 |
| fries | 2 |
```

​    **注意**: 表头语法是:`| first header | second header |` + ==`return`== 

#### 对齐

左对齐,右对齐,居中对齐

|    name | price |
| ------: | :---: |
| chicken |   9   |
|   fries |   2   |

```markdown
| name | price |
| ---: | :---: |
| chicken | 9 |
| fries | 2 |
```

typrora 提供了 `ctrl` + `t` 的快捷键插入表格以及相应的快捷操作

### 引用

> The blockquote element is used **to indicate the quotation of a large section of text from another source**.

```markdown
> 文字
```

引用可以嵌套

> first quote
>
> > second quote

```markdown
> first quote
>
> > second quote
```

> fir

> > sec

```markdown
> fir
> > sec
```

### 列表

#### 无序列表

* smth

* smth

* smth

```markdown
* smth
* smth
* smth
```

​    **注意**:语法是`*` + `space`   `*`也可以是`+`或者`-`

#### 有序列表

1. smth
2. smth
3. smth

```markdown
1. smth
2. smth
3. smth
```

​    **注意**:语法是`数字` + `.` + `space`

```markdown
可以使用`数字` + \ + `.` 来取消显示为列表(反斜杠转义)
```

### 代码

#### 代码块

```markdown
```语言名称
```

#### 行内代码

`Java`, `C` 

```markdown
`Java`, `C`
```

### 跳转

#### 外部跳转

[Google](http://www.google.com)

```markdown
[Link text](link)
```

#### 内部跳转

[跳转到引用章节](#引用)

```markdown
[Link text](#headers)
```

> In Typora, clicking the link will expand it for editing, and command+click will open the hyperlink in your web browser or jump to the header.

### URL

<https://google.com>

```markdown
<https://google.com>
```

### 图片

![Black Order](https://hedwig-cf.netmarble.com/forum-common/mherosgb/futurefight_en/thumbnail/36ff66cb18074adc8ec0ae8e29f27282_1621818566597_d.jpg)

```markdown
![text](path of the image)
```

> You are able to use drag & drop to insert an image from an image file or your web browser. You can modify the markdown source code by clicking on the image. A relative path will be used if the image that is added using drag & drop is in same directory or sub-directory as the document you're currently editing.

### YAML Fromt Matter

> Typora now supports [YAML Front Matter](http://jekyllrb.com/docs/frontmatter/). Input `---` at the top of the article and then press `Return` to introduce a metadata block. Alternatively, you can insert a metadata block from the top menu of Typora.

### [Support Doc](https://support.typora.io/)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值