markdown 笔记
记录一些markdown的常用语法,
斜体和粗体
输入:_斜体_
输出:斜体
输入:**粗体**
输出:粗体
强调
cc比较`帅`
cc比较帅
标题
输入:
### title1
#### title2
##### title3
输出:
title1
title2
title3
链接
输入:[kouyt5](https://www.github.com/kouyt5)
输出:kouyt5
输入:[全局链接][link]
[link]:www.google.com
输出:全局链接 记得中间至少隔一行
图片
输入:![tiger](https://upload.wikimedia.org/wikipedia/commons/5/56/Tiger.50.jpg)
输出:
引用
输入:I read this interesting quote the other day:
>
>"Her eyes had called him and his soul had leaped at the call. To live, to err, to fall, to triumph, to recreate life out of life!"
>
>second line
输出: I read this interesting quote the other day:
“Her eyes had called him and his soul had leaped at the call. To live, to err, to fall, to triumph, to recreate life out of life!”
second line
注意与下一行空行
列表
输入:
* apple
* apple1
* apple2
* pencil
* phone
+ chencong
+ baihui
输出:
- apple
- apple1
- apple2
- pencil
- phone
- chencong
- baihui
段落
如何换行?插入两个空格,官方教程是这样说的,说是防止渲染成一行。但实际上直接换行就ok了。
输入:
I love all the beautiful girl with a kindheart and considerate heart. Do you agree with me?
输出: I love all the beautiful girl with a kindheart and considerate heart. Do you agree with me?
public class Test{
public static void main(String[] args){
System.out.println("Hello world");
}
}
Latex
$$ \Delta = \frac{-b\pm\sqrt{b^{2}-4ac}}{2a} $$