Basic usage of Markdown

Basic usage of Markdown

A title

In Markdown, if you want to define a text for the title, as long as this text preceded by the # sign can
be noted that, in a standard written in Markdown, required between the # character and a space
Markdown total support six header, a number representative of a title #, # number represents two subheadings, and so on, on behalf of six six title number #
example

    # 这是一级标题
    ## 这是二级标题
    ### 这是三级标题
    #### 这是四级标题
    ##### 这是五级标题
    ###### 这是六级标题

Effect of the above operation code 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

- italic

The need to tilt the left and right of the text by a * in each wrap

· Bold

Will need about bold text are wrapped up with two numbers *

· Bold and italic

The need to tilt the left and bold text are wrapped with three No. *

· Strikethrough

The left and right lines need to delete character respectively crossed two wrap ~ No.

Examples

    *这是斜体*
    **这是加粗**
    ***这是加粗斜体***
    ~~这是删除线~~

Effect of the above operation code as follows

This is italic
This is bold
This is a bold and italic
This is strikethrough


Third, the reference

1, in front of the need to reference the text to add> Number
Example

    >引用

running result

Quote

2, a plurality> can function multilayer numbers reference

Examples

    >引用
    >>引用
    >>>引用
    >>>>引用

Effect of the above operation code as follows

Quote

Quote

Quote

Quote


Fourth, the dividing line

Three or more than three - number and asterisk can function as a dividing line
sample

    ---
    -----
    ***
    *****

You can see the results are the same






V. Hyperlinks

grammar:

    [超链接名](超链接地址 "超链接title")
    title可加可不加

Examples

    [百度](http://baidu.com)
    [谷歌](http://google.com)
    [哔哩哔哩](http://bilibili.com "哔哩哔哩 干杯!!")

Results are as follows
Baidu
Google
beep beep Mile Mile

Note: Because beep beep miles miles plus a title, so you can see when the cursor moves to the title information on the hyperlink.
title is generally used to describe the link will point to where, of course, you can write according to their needs


VI Form

grammar

    以3*3大小的表格为例
    |表头|表头|表头|
    |-----|-----|-----|
    |内容|内容|内容|
    |内容|内容|内容|
    
    说明:
    1、第二行用于分割表头和内容,并且用于控制每一列的格式
    2、- 号有一个就行,之所以写成这样子是为了对齐
    3、文字默认居左,通过第二行可以控制位置
       - 号两边加: 号,表示文字居中
       - 号右边加: 号,表示文字居右
    4、标准Markdown写法是需要和上面一样在左右两边都加上|号的,但是也有
       部分编辑器不需要左右的|号,根据情况灵活调整。

Examples

    |兵种|人口|优先|
    |-----|-----|-----|
    |野蛮人|1|任意|
    |巨人|5|防御建筑|
    |熔岩猎犬|30|防空火箭|

Results are as follows:

Arms population priority
barbarian 1 Arbitrarily
Giant 5 Defense building
Lava Hound 30 Anti-aircraft rocket

Guess you like

Origin www.cnblogs.com/goodtwo/p/11140753.html