Markdown编辑器总结
1、使用*创建不同的标题等级
语法格式[*]
一级标题
二级标题
三级标题
2、无序列表
语法格式:[-]
- 列表1
- 列表2
- 列表3
3、有序列表
语法格式[1. ]
1. 有序列表1
2. 有序列表2
3. 有序列表3
以上的有序和无序列表都可以使用加前导空格来分层级
4、输入内容
语法格式[>]
this is a test
5、格式化字体
语法格式[**,*,***]
使用两个‘**’字体加粗
使用一个‘*’斜体
使用三个 以上效果合并斜体加粗
test
test
test
6代码块
语法格式[使用tab键]
这里是一个代码块,以tab键开始输入
7、分割线与删除
语法格式[---,___,***,{~~~,~~~}]
这里有代码分割线
这里有代码分割线
这里有代码分割线
~这里是删除代码~
8、代码高亮
//c code
#include <stdio.h>
int main()
{
printf("hello world");
return 0;
}
//go code
package main
import(
"fmt"
)
func main(){
fmt.Println(hello world);
}
//c++ code
#include <iostream>
using namespace std;
int main()
{
cout<<"hello world";
return 0;
}
以上练习,主要是为了完善工作当中写的API文档的规范,配合pandoc来使用