Markdown Quick Start, markdown

Source: Internet
Author: User

Markdown Quick Start, markdown

Although there are many Markdown syntaxes, there are not many actually used. The following syntaxes can basically cover what we usually use


Section, title, Block Code


A paragraph is composed of more than one connected row sentence, and more than one blank row is divided into different paragraphs.

Markdown supports the syntax of two headers: Setext and atx. The Setext form uses the bottom line form,

Using = (the highest level title) and-(the second level title), The Atx form inserts 1 to 6 # At the beginning of the row, corresponding to the level 1 to 6 of the title.

Block reference uses the '>' angle brackets in the form of email.

Markdown Syntax:

Level 1 title ========================== Level 2 Title --------------- ### Header 3 #### Header 4> block> section 2
Effect:



Rhetoric and emphasis


Markdown usageAsterisks and bottom linesTo mark the segments to be emphasized.

Markdown Syntax:

This sentence is * emphasized *. This sentence _ is also stressed _. Use two asterisks for ** high emphasis **. Or use this method, _ Two underscores __.
Effect:



List


Unordered list usageAsterisk,Plus signAndMinus signCan be used as the project tag of the list.

Use asterisks:

* Beijing. * Shenzhen. * Zhengzhou.

Plus sign:

+ Beijing. + Shenzhen. + Zhengzhou.

Minus sign:

-Beijing.-Shenzhen.-Zhengzhou.

An ordered list is marked with a general number followed by an English sentence:

1. Red2. Green3. Blue

Note: asterisks, plus signs, and minus signs must be followed by a space



Link


Markdown supports two forms of link Syntax:Intra-rowAndReferenceIn either form, brackets are used to convert text into links.

The line is directly followed by brackets to directly connect the link:

This is a [LINK] (http://example.com /)

You can also add the title attribute selectively:

This is a [LINK] (http://example.com/"I am title ")

The reference link allows you to specify a name for the link, and then you can define the content of the link elsewhere in the file:

I am a reference link in the following forms: [method 1] [1] or [method 2] [2] or [method 3] [3]. [1]: http://google.com/[2]: http://baidu.com/[3]: http://itmyhome.com "this is my blog"




Image


The syntax and link of the image are similar.

Intra-row format (title is optional)

![alt text](/img.jpg "Title")

Reference format:

![alt text][id][id]: /img.jpg "Title"

The above two methods both output HTML:

 



Code


In common paragraph text, you can use backticks to mark the Code Section. The &, <, and> in the section will be automatically converted to HTML entities,

This feature allows you to easily insert HTML in the Code Section:

Markdown Syntax:

This is a piece of code marked as 'Hello world'. The &, <and> in the section will be parsed into HTML '-', '-', '

Effect:




Author: itmyhome

Original article: wheat field technology blog


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.