目录
块元素
标题
使用#
可以表示1~6级标题(h1~h6
),## header2
等同于与 <h2>header</h2>
效果如下:
header2
段落
段落<p>
是一个或多个连续的文本行,可以用一个或多个空行(blank lines)分隔。(空行只有制表符tab
和空格space
,不包含其他字符)。正常段落不应该用空格或制表符缩进,可以使用两个及以上的回车来换行<br>
效果如下:
这是第一行
这是第二行
块引用
markdown使用>
标识块引用(BLOCKQUOTES),最好在每行的开头都加上>
>BLOCKQUOTES
>BLOCKQUOTES BLOCKQUOTES
>
>BLOCKQUOTES
效果如下
BLOCKQUOTES
BLOCKQUOTES BLOCKQUOTESBLOCKQUOTES
偷懒的话,放在段落<p>
的第一行也是可以的
>BLOCKQUOTES
BLOCKQUOTES BLOCKQUOTES
>
>BLOCKQUOTES
这样写和上面的效果是一样的
列表
无序列表<ul>
,使用-
,例如:
- list1
- list2
- list3
效果如下:
- list1
- list2
- list3
有序列表<ol>
,使用 1.
,例如:
1. list1
1. list2
1. list3
效果如下:
- list1
- list2
- list3
代码块
代码块(code block
) ,<per><code> this is code<per><code>
,单行使用`
,多行使用```
单行注释demo:
`System.out.println("Hello World!")`
效果
System.out.println("Hello World!")
多行注释demo:
```java
public void setUserMapper(UserMapper userMapper) {
this.userMapper = userMapper;
}
```
效果:
public void setUserMapper(UserMapper userMapper) {
this.userMapper = userMapper;
}
分割线
分割线<hr>
,使用三个及以上的-
,例如:
---
效果如下:
字体
qwerqw
my
粗体
- list item 1
- list item 2
- list item 3
- Do this.
- Do that.
- Done
h2
- a
- 2
- 3
- h
引用
- h
a
转义
- \
- `
- ~
- *
- _
- -
- +
- .
- !
删除
delete this
<div class="container">this is containter<div>
public void setUserMapper(UserMapper userMapper) {
this.userMapper = userMapper;
}
网友评论