注1:Markdown实际上是不支持排版的,因此其中一些语法如文字居中等,借助的是HTML语法(MD支持)。
注2:表格文字居中等在其他MD编辑器有效,在CSDN的MD编辑器中无效。
注3:插入目录:
[TOC]
一、代码段
1、简单代码
```
code
```
test code1
test code2
2、大段代码
空行+4blanks or Tab+ code
code1
code2
二、块注释 Blockquote
> test1
> test2
test1
test2
还可以嵌套:
> test main
>
>> test att
>
> test return
test main
test att
test return
三、标题设置
# 一级标题
## 二级标题
### 三级标题
#### 四级标题
##### 五级标题
###### 六级标题
四、字体
1、斜体
*test*
_test2_
test
test2
2、粗体
**test**
__test2__
test
test2
3、下划线
方案1:行内 HTML
<u>test</u>
test
方案2:html的span标签、设置行内CSS的border-bottom属性
<span style="border-bottom:2px dashed blue;">所添加的需要加下划线的行内文字</span>
所添加的需要加下划线的行内文字
4、中划线
~~test~~
test
5、居中
<center>
test
</center>
test
6、分割线
3个”_”。
7、红色字体
<font color=#FF0000 face=