Markdown语法记录,Github上传图片小结。

强调

bold **bold**
bold __bold__
italic *italic*
italic _italic_

注: 符号可跨行,符号可加空格。

分割线


---

注: 必须单独一行,可含空格。

引用

blockquote

blockquote

1
2
>blockquote
>>blockquote

标题

1
2
3
4
5
6
# 一级标题
## 二级标题
### 三级标题
#### 四级标题
##### 五级标题
###### 六级标题

列表

  • 列表
  • 列表
    • 列表
    • 列表
1
2
3
4
- 列表
- 列表
+ 列表
+ 列表
  1. 列表
  2. 列表
1
2
1. 列表
2. 列表

注: 符号后带空格,单-或者单+,都是无序列表,混合用就是嵌套列表。

链接

github

https://github.com/

github

1
2
3
4
5
6
7
8
9
10
11
//文字超链接
[github](https://github.com/ "github site")
//自动链接
<https://github.com/>
//图片超链接
![github](https://github.com/fluidicon.png "github icon")
//索引超链接
[github][1]
![github][2]
[1]:https://github.com/
[2]:https://github.com/fluidicon.png

代码

右键打开Git-bash

1
2
3
4
5
6
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}

Github 上传图片

1
2
![](https://github.com/zhdaduo/zhdaduo.github.io/raw/master/2017/07/26/explore-markdown/codeblock.png)
https://github.com/github用户名/github仓库名/raw/分支名/图片的路径/图片名称

Github软件

mweb(mac)

Cmd Markdown(web)

Cmd Markdown download(mac, windows, linux)

Typora(mac, windows, linux)