Markdown语法
Markdown
语法摘要
标题语法 #
链接语法
这是一个链接 [link](http://example.com)
强调语法
*
引用语法
>
列表语法
1. -
代码语法
`
分割线语法
=== --- ___
链接语法
[link_name](link_url "link title")
图片语法
![图片alt](图片链接 "图片title")
脚注语法
[^1]
标题编号
### Heading {#custom-id}
定义列表
:
删除线
~~
任务列表语法
-[x]
### 语法标题语法
# 1级标题
## 2级标题
### 3级标题
#### 4级标题
##### 5级标题
###### 6级标题
####### 7级标题
- 链接语法
[link](http://example.com) 这是一个链接
- 段落语法: 使用空白行将一行或多行文本进行分隔, 使用
- 强调语法: 使用 “*” 和 “_”
正常
**粗体**
*斜体* ***粗体斜体***
- 引用语法
- 要创建块引用,请在段落前添加一个 > 符号
- 块引用可以包含多个段落。为段落之间的空白行添加一个 > 符号
- 块引用可以嵌套。在要嵌套的段落前添加一个 >> 符号
- 块引用可以包含其他 Markdown 格式的元素
- 列表语法
1. 首先 => 有序列表
- 首先 => 无序列表 - + *
- 代码语法
` This is code. `
`` This is code include `. ``
Code block => 每一行缩进至少四个空格或一个制表符
- 分隔线语法:=== — ___
第一段===
第二段
---
第三段
___ 第四段
- 链接语法
[超链接显示名](超链接地址 "超链接title")
<https://markdown.com.cn>
<fake@example.com>
- 图片语法
![图片alt](图片链接 "图片title")
[![沙漠中的岩石图片](/assets/img/shiprock.jpg "Shiprock")](https://markdown.com.cn)
- 转义字符语法
\\ \` \* \- \_ \{ \} \[ \] \( \) \# \+ \- \. \! \|
内嵌html标签
表格语法
| Syntax | Description |
| ----------- | ----------- |
| Header | Title | | Paragraph | Text |
- 代码围栏块
```json
{
"firstName": "John",
"lastName": "Smith",
"age": 25
}
```
- 图片语法
![这是图片](/assets/img/philly-magic-garden.jpg "Magic Gardens")
- 脚注
[^1] and here's a longer one.[^bignote]
Here's a simple footnote,
[^1]: This is the first footnote.
[^bignote]: Here's one with multiple paragraphs and code.
Indent paragraphs to include them in the footnote.
`{ my code }`
Add as many paragraphs as you like.
- 标题编号
### My Great Heading {#custom-id}
- 定义列表
First Term : This is the definition of the first term.
- 删除线
~~世界是平坦的。~~ 我们现在知道世界是圆的。
- 任务列表语法
- [x] Write the press release
- [ ] Update the website
- [ ] Contact the media
- 使用 Emoji 表情
去露营了! :tent: 很快回来。
真好笑! :joy:
- 数学公式
$$ x^{y^z}=(1+{\textrm e}^x)^{-2xy^w} $$
\begin{gather*}
\iint_V \mu(u,v) \,du\,dv\\
\iiint_V \mu(u,v,w) \,du\,dv\,dw\\
\iiiint_V \mu(t,u,v,w) \,dt\,du\,dv\,dw\\
\idotsint_V \mu(u_1,\dots,u_k) \,du_1 \dots du_k \end{gather*}
\[ x^{y^z}=(1+{\textrm e}^x)^{-2xy^w} \]
\[\begin{gather*} \iint_V \mu(u,v) \,du\,dv \\ \iiint_V \mu(u,v,w) \,du\,dv\,dw \\ \iiiint_V \mu(t,u,v,w) \,dt\,du\,dv\,dw \\ \idotsint_V \mu(u_1,\dots,u_k) \,du_1 \dots du_k \end{gather*}\]
资源
Sublime配置
- 数学公式markdown-preview设置 { “enable_mathjax”: true, “js”: [ “https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML”, “res://MarkdownPreview/js/math_config.js”, ], }