Markdown官方教程
[TOC]
Markdown 官方教程
By:weimenghua
Date:2023.03.02
Description:Markdown
参考资料
Markdonw 官网
Markdown 官方教程
Markdown 标题语法
Heading level 1
Heading level 2
Heading level 3
Heading level 4
Heading level 5
Heading level 6
Markdown 段落语法
I really like using Markdown.
I think I'll use it to format all of my documents from now on.
Markdown 换行语法
This is the first line.
And this is the second line.
Markdown 强调语法
粗体(Bold)
I just love bold text.
I just love bold text.
Loveisbold
斜体(Italic)
Italicized text is the cat's meow.
Italicized text is the cat's meow.
Acatmeow
粗体(Bold)和斜体(Italic)
This text is really important.
This text is really important.
This text is really important.
This text is really important.
This is reallyveryimportant text.
Markdown 引用语法
要创建块引用,请在段落前添加一个 > 符号
Dorothy followed her through many of the beautiful rooms in her castle.
多个段落的块引用
Dorothy followed her through many of the beautiful rooms in her castle.
The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
嵌套块引用
Dorothy followed her through many of the beautiful rooms in her castle.
The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
带有其它元素的块引用
The quarterly results look great!
Revenue was off the chart.
Profits were higher than ever.
Everything is going according to plan.
Markdown 列表语法
- First item
- Second item
- Third item
- Indented item
- Indented item
- Fourth item
Markdown 代码语法
At the command prompt, type nano
.
Use `code` in your Markdown file.
Markdown 分隔线语法
Markdown 链接语法
这是一个链接 Markdown 语法。
这是一个链接 Markdown 语法。
https://markdown.com.cn
fake@example.com
I love supporting the EFF.
This is the Markdown Guide.
See the section on code
.
Markdown 图片语法
![这是图片](/assets/img/philly-magic-garden.jpg "Magic Gardens")
[![沙漠中的岩石图片](/assets/img/shiprock.jpg "Shiprock")](https://markdown.com.cn)
Markdown 转义字符语法
* Without the backslash, this would be a bullet in an unordered list.
http://images.google.com/images?num=30&q=larry+bird
©
Markdown 内嵌 HTML 标签
This word is bold. This word is italic.
This is a regular paragraph.
Foo |
This is another regular paragraph.
Markdown 表格
Syntax | Description |
---|---|
Header | Title |
Paragraph | Text |
对齐 | Syntax | Description | Test Text | | :--- | :----: | ---: | | Header | Title | Here's this | | Paragraph | Text | And more |
Markdown 围栏代码块
{
"firstName": "John",
"lastName": "Smith",
"age": 25
}
Markdown 脚注
Here's a simple footnote,1 and here's a longer one.bignote
Indent paragraphs to include them in the footnote.
{ my code }
Add as many paragraphs as you like.
Markdown 标题编号
My Great Heading
Markdown 定义列表
First Term : This is the definition of the first term.
Second Term : This is one definition of the second term. : This is another definition of the second term.
Markdown 删除线
世界是平坦的。 我们现在知道世界是圆的。
Markdown 任务列表语法
- Write the press release
- Update the website
- Contact the media
Markdown 使用 Emoji 表情
去露营了! ⛺ 很快回来。
真好笑! 😂
Markdown 自动网址链接
自动将 URL 转换为链接 http://www.example.com
禁用自动 URL 链接
http://www.example.com
Markdown 下划线
<u>下划线</u>
$\underline{\text{下划线}}$
Markdown 上划线
$\overline{\text{上划线}}$