Markdown is a plain text markup language. A simple markup syntax, it can make the plain text content has a certain format
Advantages:
1, because it is plain text, Markdown support so long as the place can get the same effect editing, typesetting lets get rid of, and concentrate on writing.
2, the operation is simple. For example: Mark WYSIWYG editing titles, first select the content, and then click on the title bar of the navigation button, select the title a few levels. To three steps. And Markdown only need to add # before heading to content
Disadvantages:
1, need to remember some of the syntax (of course, is very simple five minutes to learn.).
2, some platforms do not support Markdown editing mode.
A title
In the text you want to set as the title preceded by # to indicate
a # is a title, two # is the second title, and so on. Support six titles.
Note: The standard syntax is generally followed by a space to write the # character, seemingly simple book no space is required.
Example:
# 这是一级标题
## 这是二级标题
### 这是三级标题
#### 这是四级标题
##### 这是五级标题
###### 这是六级标题
Results are as follows:
This is a title
This is the second title
This three-stage title
This is a four title
This is a five title
This is the six Title
Second, font
-
Bold
To the left and right, respectively, with two bold text wrap asterisk
-
Italic
Text to be tilted left and right by a number each wrap *
-
Bold italic
To the left and right tilt and bold text are wrapped with three No. *
-
Strikethrough
About to add strikethrough text are wrapped up with two numbers ~
Example:
**这是加粗的文字**
*这是倾斜的文字*`
***这是斜体加粗的文字***
~~这是加删除线的文字~~
Results are as follows:
This is bold text
which is skewed character
that is bold italic textThis is a plus text strikethrough
Third, the reference
Before the quoted text plus> can be. References can also be nested, such as three plus two >> >>>
the n-th ...
looks like you can always add it, but God did not horse with eggs
Example:
>这是引用的内容
>>这是引用的内容
>>>>>>>>>>这是引用的内容
Results are as follows:
This is the contents of references
This is the contents of references
This is the contents of references
Fourth, the dividing line
More than three or three - or * can be.
Example:
---
----
***
*****
Results are as follows:
you can see, the display effect is the same.
Fifth, Pictures
grammar:
![图片alt](图片地址 ''图片title'')
图片alt就是显示在图片下面的文字,相当于对图片内容的解释。
图片title是图片的标题,当鼠标移到图片上时显示的内容。title可加可不加
Example:
![blockchain](https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/ u=702257389,1274025419&fm=27&gp=0.jpg "区块链")
Results are as follows:
Upload a picture click on picture logo navigation bar, you can select the picture
Sixth, hyperlinks
grammar:
[超链接名](超链接地址 "超链接title") title可加可不加
Example:
[简书](http://jianshu.com) [百度](http://baidu.com)
Results are as follows:
Note: Markdown syntax itself links open in a new page, a seemingly simple process to do a book, is not supported. Other platforms may die, if you want to open a new page, then you can use html language of a label instead.
<a href="超链接地址" target="_blank">超链接名</a> 示例 <a href="https://www.jianshu.com/u/1f5ac0cf6a8b" target="_blank">简书</a>
Seven list
-
Unordered list
Syntax:
unordered list with - any of which can be + *
- 列表内容
+ 列表内容
* 列表内容
注意:- + * 跟内容之间都要有一个空格
Results are as follows:
- List content
- List content
- List content
-
Ordered list
Syntax:
Digital plus points
1.列表内容
2.列表内容
3.列表内容
注意:序号跟内容之间要有空格
Results are as follows:
1. List the contents
2. List the contents
3. list of contents
-
Nested list
To knock three spaces between the previous and the next level
-
An unordered list content
- Two unordered list content
- Two unordered list content
- Two unordered list content
-
An unordered list content
- Two ordered list of contents
- Two ordered list of contents
- Two ordered list of contents
-
An ordered list of contents
- Two unordered list content
- Two unordered list content
- Two unordered list content
-
An ordered list of contents
- Two ordered list of contents
- Two ordered list of contents
- Two ordered list of contents
Eight tables
grammar:
表头|表头|表头
---|:--:|---: 内容|内容|内容 内容|内容|内容 第二行分割表头和内容。 - 有一个就行,为了对齐,多加了几个 文字默认居左 -两边加:表示文字居中 -右边加:表示文字居右 注:原生的语法两边都要用 | 包起来。此处省略
Example:
姓名|技能|排行
--|:--:|--: 刘备|哭|大哥 关羽|打|二哥 张飞|骂|三弟
Results are as follows:
Full name | skill | ranking |
---|---|---|
Liu Bei | cry | Big Brother |
Guan Yu | hit | Brother |
Zhang Fei | curse | Third brother |
Nine, Code
Syntax:
single line of code: a code for respectively between the anti-wrap quotes
`代码内容`
Block: three codes are used between the anti-wrap quotes, and both sides of a separate line Backticks
(```)
代码...
代码...
代码...
(```)
Note: To prevent translation, at around three Backticks added parentheses, actually is not. Here only to demonstrate, in practice to both sides parentheses removed.
Example:
Single line of code
`create database hero;`
Block
(```)
function fun(){ echo "这是一句非常牛逼的代码"; } fun(); (```)
Results are as follows:
Single line of code
create database hero;
Block
function fun(){
echo "这是一句非常牛逼的代码"; } fun();
Ten, flow chart
```flow
st=>start: 开始
op=>operation: My Operation cond=>condition: Yes or No? e=>end st->op->cond cond(yes)->e cond(no)->op &```
Results are as follows:
Brief book does not support a flow chart of the so cut dpi