Markdown基本语法学习
文章目录
Markdown基本语法
标题语法:几个#号代表几级标题 1-6级
Heading level 1
Heading level 2
Heading level 3
Heading level 4
Heading level 5
Heading level 6
Heading level 7
段落语法:用空白行分隔段落
这是一段段落啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
啊啊啊啊啊啊啊啊啊啊啊啊
换行语法:HTML的
标签换行
说的发
的发生的
强调语法:将文本设置为粗体或斜体来强调其重要性
粗体:在单词或短语前后各添加两个星号或下划线,推荐使用两个星号,中间不能使用空格
我们是好的
水电__费了解__了
说了理论上地方
受睡了哦
斜体:在单词或短语前后各添加一个星号或下划线,推荐使用一个星号,中间不能使用空格
说的翻开看看
啦啦啦等等
来咯练练手
是打_上来了_
粗体和斜体:在单词或短语前后各添加三个星号或下划线,推荐使用三个星号,中间不能使用空格
This text is really important.
this text is ___really important___.
this text is __really important__.
this text is really important.
this is reallyveryimportant text.
this is really___very___important text.
this is reallyveryimportant text.
引用语法:创建块引用:在段落前加一个>符号
Dorothy followed her through many of the beautiful rooms in her castle.
引用1
引用2
引1
引1.1
引1.1.1The quarterly results look great!
- aaaa
bbbb
斜体 加粗 斜体加粗everything
快点快点苦咖啡
列表语法:
可以将多个条目组织成有序或无序列表
有序列表 每个列表前加1.空格
无序列表 每个列表前加破折号-,星号*,加号+ 缩进一个或多个列表项可创建嵌套列表
- 1
- 2
- 3
- 4
a
- bbbb
b
- dddd
- c
d
- ggg
- aaaa
- bbbb
- cccc
- wwww
- qqqq
- vvvvv
- 222222
ddddd
- lll
sss
- jjj
aasdsa
- bbbb
- aa
bb
- b
- bb2
- cc
- first
second
ddd
dfdfsdfdsf
- ssssss
first
ssssssssssss
- second
111111
sssssssssss
ddddd
222222
lllll
- ooo
aaaa
<title>Test</title> <h3> sjjdfsjd </h3>
<html>
<head>
<title>Test</title>
</head>
public class Test{}
bbb
ccc
- Indented item
- Indented item
- ddd
代码语法:单词或短语表示为代码,将其包裹在反引号`中
type nano
user `code` in your Markdown file.
public class A{
}public class A{
}public class B{
}分隔线语法:要创建分隔线,请在单独一行上使用三个或多个星号 (***)、破折号 (---) 或下划线 (___) ,并且不能包含其他内容
_
链接语法:链接文本放在中括号内,链接地址放在后面的括号中,链接title可选。
超链接Markdown语法代码:[超链接显示名](超链接地址 "超链接title")
对应的HTML代码:<a href="超链接地址" title="超链接title">超链接显示名</a>
这是一个链接Markdown语法
这是百度的链接百度一下
这是一个链接Markdown语法
这是百度的链接百度一下
<fake@example.com>
i love supporting the eff.
this is the Markdown Guide.
see the section on code.
- hobbit-hole
- hobbit-hole
- hobbit-k
图片语法:要添加图像,请使用感叹号 (!), 然后在方括号增加替代文本,图片链接放在圆括号里,括号里的链接后可以增加一个可选的图片标题文本。
插入图片Markdown语法代码:。
对应的HTML代码:<img src="图片链接" alt="图片alt" title="图片title">
转义字符语法:要显示原本用于格式化 Markdown 文档的字符,请在字符前面添加反斜杠字符 () 。
- aaaaaaaaaaaa
* aaaaaaaaaa
©
at&t
AT&T
AT&T
4<5
4<5
内嵌HTML标签:对于 Markdown 涵盖范围之外的标签,都可以直接在文件里面用 HTML 本身。如需使用 HTML,不需要额外标注这是 HTML 或是 Markdown,只需 HTML 标签添加到 Markdown 文本中即可
This word is bold.This word is italic.
This is a regular paragraph.
| Foo |
This is another regular paragraph.
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论