title 1
# title 1
title 2
## title 2
title 3
### title 3
title 4
#### title 4
title 5
##### title 5
title 6
###### title 6
分割线
***
---
代码示例
效果:
var a = 100;
console.log(a);
代码:
``
var a = 100;
console.log(a);
//上下反引号都是3个,这里为避免混乱显示只写了2个
``
效果:
var a = 100;
console.log(a);
代码(句首4个空格):
var a = 100;
console.log(a);
列表
- item 1
- item 2
- item 2-1
- item 2-2
- item 2-2-1
- item 2-2-2
- item 2-3
- item 3
- item 1
- item 2
- 2-1
- 2-2
- 2-2-1
- 2-2-2
- 2-3
- item 3
- item 1
- item 2
+ item 1
+ item 2
- item 1
- item 2
* item 1
* item 2
- item1
- item2
1. item1
2. item2
换行
两种方式:
1. 直接换行(在有道云笔记无效,会合并成一行,除非在换行前加两个空格);
2. 换行2次(相当于一个换行,行间距比前者更大)。
Today
is Monday.
Today
is Monday.
待办事项列表
- [x] item 1
- [ ] item 2
- [x] item 1
- [ ] item 2
表格
header 1 | header 2 |
---|---|
row 1 col 1 | row 1 col 2 |
row 2 col 1 | row 2 col 2 |
row 3 col 1 | row 3 col 2 |
header 1 | header 2
-|-
row 1 col 1 | row 1 col 2
row 2 col 1 | row 2 col 2
row 3 col 1 | row 3 col 2
引用
This is a blockquote.
This is the second paragraph in the blockquote.This is an H2 in a blockquote
> This is a blockquote.
> This is the second paragraph in the blockquote.
>
> ## This is an H2 in a blockquote
斜体粗体
斜体
*斜体*
斜体
_斜体_
粗体
**粗体**
粗体
__粗体__
粗体加斜体
***粗体加斜体***
粗体加斜体
___粗体加斜体___
链接
<https://www.baidu.com>
Go to Baidu.
Go to [Baidu](https://www.baidu.com).
Markdown [教程一][1],Markdown [教程二][2]。
[1]:http://www.markdown.cn/
[2]:https://forum.fastadmin.net/thread/1629
图片
![失效显示](https://i-blog.csdnimg.cn/blog_migrate/837202ed431d343204a3c9b545a300ed.png)
注脚
特殊名词1
特殊名词1[^comment1]
[^comment1]:特殊名词1的注脚内容。
多个词可指向同一个注脚。
特殊字符引用
I strongly recommend against using any <blink>
tags.
I wish SmartyPants used named entities like —
instead of decimal-encoded entites like —
.
I strongly recommend against using any `<blink>` tags.
I wish SmartyPants used named entities like `—`
instead of decimal-encoded entites like `—`.
字符实体
<body>
&
—
<body>
&
—
普通符号实体
! # - + \ *
\! \# \- \+ \\ \*
HTML 代码示范
表格
header 1 | header 2 |
---|---|
row 1 col 1 | row 1 col 2 |
row 2 col 1 | row 2 col 2 |
<table>
<caption>caption</caption>
<tr>
<th>header 1</th>
<th>header 2</th>
</tr>
<tr>
<td>row 1 col 1</td>
<td>row 1 col 2</td>
</tr>
<tr>
<td>row 2 col 1</td>
<td>row 2 col 2</td>
</tr>
</table>
title 1
<h1>title 1</h1>
<hr>
列表
- item 1
- item 2
- aaa
- bbb
- item 3
<ul>
<li>item 1</li>
<li>item 2
<ol>
<li>aaa</li>
<li>bbb</li>
</ol>
</li>
<li>item 3</li>
</ul>
-
item 1
- definition 1
- definition 1 item 2
- definition 2
<dl>
<dt>item 1</dt>
<dd>definition 1</dd>
<dd>definition 1</dd>
<dt><b>item 2</b></dt>
<dd>definition 2</dd>
</dl>
- 特殊名词1的注脚内容。 ↩