341 字
2 分钟
Markdown 语法速查
2024-01-07
无标签

基本语法#

大部分编辑器都支持的基本语法

标题#

# 一级标题

## 二级标题

## 三级标题

段落#

这是一段文字

这是另一段文字

换行#

第一行

第二行

或者

第一行<br>
第二行

强调#

**粗体**
_斜体_
**_粗斜体_**
~~删除线~~

引用#

> 引用的一段话
>
> 引用

列表#

有序列表:

1. 苹果
2. 香蕉
3. 橘子
   1. 红色火龙果
   2. 白色火龙果
4. 梨子

无序列表:

- 张三
- 李四
- 王五
  -
  -
  -
- ...

代码块#

`console.log('hello')`

```js
const str = 'hello'
console.log(str)
```

分割线#

上面的文字

---

下面的文字

链接#

一般链接:
[Markdown 语法](https://markdown.com.cn "链接标题")

简易链接:
<https://markdown.com.cn>
<fake@example.com>

格式化链接:
加粗文字 **[EFF](https://eff.org)**.
斜体字 _[Markdown Guide](https://www.markdownguide.org)_.
代码块 [`code`](#code).

图片#

![图片介绍](image.jpg "图片标题")

可点击的图片:
[![图片介绍](images.jpg "图片标题")](链接)

转义字符#

\*

扩展语法#

扩展语法并不是所有编辑器都支持

表格#

左对齐居中右对齐
HeaderTitleHere’s this
ParagraphText |And more
| 左对齐    |    居中     |      右对齐 |
| :-------- | :---------: | ----------: |
| Header    |    Title    | Here's this |
| Paragraph | Text &#124; |    And more |

Markdown 在线表格生成器

任务列表#

  • Write the press release
  • Update the website
  • Contact the media
- [x] Write the press release
- [ ] Update the website
- [ ] Contact the media

latex#

π=3.14159\pi = 3.14159

π=3.14159\pi = 3.14159
$\pi = 3.14159$

$$
\pi = 3.14159
$$

mermaid#

flowchart TD
  Start --> Stop
```mermaid
flowchart TD
  Start --> Stop
```
Markdown 语法速查
https://flapypan.netlify.app/posts/markdown/
作者
FlapyPan
发布于
2024-01-07
许可协议
CC BY-NC-SA 4.0