markdown
markdown语法
# 1.标题
方式1
使用井号空格+文本 # 一级标题
方式2
ctrl+数字 组合
(ctrl + 0把标题切换为正文)
# 2.小标题
无序标题
星号+空格+文本 * 无序标题
有序标题
数字+.+空格+文本 1. 有序标题
#3.特定环境
输入3个反引号需要的语言名称即可
#4.表格
使用管道符分割表格字段信
username password gender
#5.单选框
-[]男、-[*]女
#6.表情包、删除线
:smile:、一折后一
#7.链接:基于链接可以由一个东西找到另外一个东西
文本链接:〔文本〕(地址)
图片链接:![](图片地址)
Markdown 标题语法
要创建标题,请在单词或短语前面添加井号 (#
) 。#
的数量代表了标题的级别。例如,添加三个 #
表示创建一个三级标题 (<h3>
) (例如:### My Header
)。
Markdown语法 | HTML |
---|---|
# Heading level 1 |
<h1>Heading level 1</h1> |
## Heading level 2 |
<h2>Heading level 2</h2> |
### Heading level 3 |
<h3>Heading level 3</h3> |
#### Heading level 4 |
<h4>Heading level 4</h4> |
##### Heading level 5 |
<h5>Heading level 5</h5> |
###### Heading level 6 |
<h6>Heading level 6</h6> |
一级标题
二级标题
三级标题
四级标题
五级标题
六级标题
正文
- 1
- 2
-
- q
- e
- t
- 4
- k
-
- 1
- 2
-
- Markdown
- JavaScript
- w
Markdown 强调语法
通过将文本设置为粗体或斜体来强调其重要性。
粗体(Bold)
要加粗文本,请在单词或短语的前后各添加两个星号(asterisks)或下划线(underscores)。如需加粗一个单词或短语的中间部分用以表示强调的话,请在要加粗部分的两侧各添加两个星号(asterisks)。
Markdown语法 | HTML | 预览效果 |
---|---|---|
I just love **bold text**. |
I just love <strong>bold text</strong>. |
I just love bold text. |
I just love __bold text__. |
I just love <strong>bold text</strong>. |
I just love bold text. |
Love**is**bold |
Love<strong>is</strong>bold |
Loveisbold |
正文加粗 (ctrl + b)
**加粗**
**加粗 **
斜体(Italic)
要用斜体显示文本,请在单词或短语前后添加一个星号(asterisk)或下划线(underscore)。要斜体突出单词的中间部分,请在字母前后各添加一个星号,中间不要带空格。
*斜体*
斜体
==高亮==
高亮
Markdown 引用语法
要创建块引用,请在段落前添加一个 >
符号。
这是一个引用语法
Markdown 代码语法
要将单词或短语表示为代码,请将其包裹在反引号 (```) 中。
Markdown语法 | HTML | 预览效果 |
---|---|---|
At the command prompt, type nano. |
At the command prompt, type <code>nano</code>. |
At the command prompt, type nano . |
转义反引号
如果你要表示为代码的单词或短语中包含一个或多个反引号,则可以通过将单词或短语包裹在双反引号(````)中。
Markdown语法 | HTML | 预览效果 |
---|---|---|
Use `code` in your Markdown file. |
<code>Use code in your Markdown file.</code> |
Use code in your Markdown file. |
print(1+1)
print('hello')
Markdown 链接语法
链接文本放在中括号内,链接地址放在后面的括号中,链接title可选。
超链接Markdown语法代码:[超链接显示名](超链接地址 "超链接title")
对应的HTML代码:<a href=