Markdown Basic Syntax

Source: Internet
Author: User

Markdown Basic Syntax

Markdown is a markup language in plain text format. With a simple markup syntax, it can make normal text content have a certain format.
Compared to the previous default TINYMCE editor
Advantages:
1, because it is plain text, so long as support markdown place can get the same editing effect, can let the author get rid of the trouble of typesetting, concentrate on writing.
2, simple operation. For example: The WYSIWYG edit to mark a title, first select the content, then click the Navigation Bar title button, select a few levels of title. A three-step process. and markdown only need to add # to the title content before

Disadvantages:
1, need to remember some grammar (of course, is very simple.) Five minutes to learn).
2, some platforms do not support markdown editing mode.

The blog Park is supported by markdown editing mode.
开启方式:选项->默认编辑器->MarkDown

First, the title

In front of the text you want to set as a caption, add # to indicate
One # is a headline, two # is a level two title, and so on. Supports level six headings.

NOTE: The standard syntax is generally in the # followed by a space and then write the text, blog park without spaces also line.

Example:

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

The effect is as follows:

This is level two heading this is level three heading this is level four heading this is level five heading this is level six heading two, font
    • Italic body
      The text to be tilted is wrapped with a * number, respectively.
    • Bold
      The text to be bold is wrapped up with two * numbers, respectively.
    • Italic Bold
      To tilt and bold the text left and right with three * number wrapped up
    • Delete Line
      To add strikethrough text to the left and right with two ~ ~ Number wrapped Up

Example:

**这是加粗的文字***这是倾斜的文字*`***这是斜体加粗的文字***~~这是加删除线的文字~~

The effect is as follows:

It's a bold text.
This is the leaning text '
This is the italic bold text
This is the text that is added strikethrough

Iii. references

Add > in front of quoted text. References can also be nested, such as adding two >> three >>>n ... Seems to be able to continue to add.

Example:

>这是引用的内容>>这是引用的内容>>>这是引用的内容

The effect is as follows:

This is the quoted content

This is the quoted content

This is the quoted content

Four, split line

Three or more than three-or * can.

Example:

---分割线----分割线***分割线*****

The effect is as follows, but the effect is the same:

Split Line

Split Line

Split Line

Five, pictures

Grammar:

![图片alt](图片地址 ‘‘图片title‘‘)图片alt就是显示在图片下面的文字,相当于对图片内容的解释。图片title是图片的标题,当鼠标移到图片上时显示的内容。title可加可不加

Example:

![blockchain](http://cms-bucket.nosdn.127.net/catchpic/a/a5/a5e649b8360ac1e70349d2c77780c0d7.jpg?imageView&thumbnail=550x0 "川普")

The effect is as follows:

Upload a local image directly click on the navigation bar picture logo, select the picture.

Vi. hyperlinks

Grammar:

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

Example:

[博客园](http://cnblogs.com)[百度](http://baidu.com)

The effect is as follows:

Blog Park
Baidu
NOTE: Markdown itself syntax does not support the link in the new page open, it seems that the blog has done the processing, it is possible. Some platforms may not be able to, if you encounter this situation, you can use the HTML language a tag instead.
<a href="超链接地址" target="_blank">超链接名</a>

Vii. List
    • Unordered list
      Grammar:
      Unordered list with-+ * Any kind of can (note:-+ must have a space between the contents of the following content and the spacing.) )
      Example:*
- 列表内容+ 列表内容* 列表内容注意:- + * 跟内容之间都要有一个空格

The effect is as follows:

    • List Contents
    • List Contents
    • List Contents

    • Ordered list
      Grammar:
      Add a number (a space between the sequence number and the content)

Example:

1. 列表内容2. 列表内容3. 列表内容注意:序号跟内容之间要有空格

The effect is as follows:

    1. List Contents
    2. List Contents
    3. List Contents
    • List nesting
      Knock three spaces between the upper and lower levels

    • One-level unordered list content
      • One-1
      • Two-2
    • One-level unordered list content
      1. One-1
      2. Two-2
    1. First level ordered list content
      • One-1
      • Two-2
    2. First level ordered list content
      1. One-1
      2. Two-2
Viii. Forms

Grammar:

|表头|表头|表头||:---:|:--|---:||内容|内容|内容||内容|内容|内容|第二行分割表头和内容。-有一个就行,为了对齐,多加了几个文字默认居左-两边加:表示文字居中-右边加:表示文字居右注:原生的语法两边都要用 | 包起来。: 代表对齐方式 ,: 与 | 之间不要有空格,否则对齐会有些不兼容。

The effect is as follows:
Blog Park seemingly do not support, I from for notes Sticky: (Humble opinion: Feeling this table is too laborious, a bit not big practical)

Nine, the Code

Grammar:
Single-line code: The code is wrapped in an inverted quotation mark, respectively.

Code block: The code is wrapped in three inverted quotation marks, and each side of the inverted quotation marks a separate line.

(```)  代码...  代码...  代码...(```)

Note: In order to prevent translation, the front and back three anti-quotes with parentheses, the actual is not. This is just a demonstration, in fact, to remove the two sides of the parentheses.
Example:

Single line Code

`create database hero;`

code block

(```)cj=float (input("请输入你的成绩:"))if cj>=90 and cj<=100:    print("优秀")elif cj>=70 and cj<90:    print("良好")elif cj>=60 and cj<70:    print("及格")else:    print("你要努力了")(```)

The effect is as follows:

Single line Code

create database hero;

code block

cj=float (input("请输入你的成绩:"))if cj>=90 and cj<=100:    print("优秀")elif cj>=70 and cj<90:    print("良好")elif cj>=60 and cj<70:    print("及格")else:    print("你要努力了")
Ten, flow chart

Grammar:

(```)flowst=>start: 开始op=>operation: My Operationcond=>condition: Yes or No?e=>endst->op->condcond(yes)->econd(no)->op(```)用的时候去除括号

The effect is as follows:
Blog Park do not know why not used, for the knowledge of notes can be used, I from the results of the notes to be glued up. Write

Xi. List of tasks

Note: Compatibility is generally separated by one line.
We can use it to make a list of things to do, very convenient.

- [x] 选项一    (加上x被mark后是打上一个√)- [ ] 选项二  - [ ] [选项3]

The effect is as follows:
This feature blog Park does not seem to support, in order to know the notes are possible, look at the picture:

The commonly used these functions first so many, later update, there are problems please correct me.
Learn from each other and make progress together.

Markdown Basic Syntax

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.