Markdown Quick Start

Source: Internet
Author: User

Markdown Grammar Although a lot of, but really do not use much, the following syntax can basically cover our usual use of


Paragraph, title, block code


A paragraph is made up of more than one connected line, and more than one empty line divides different paragraphs

Markdown supports the syntax, Setext and ATX forms of both headings. Setext form is in the form of a bottom line,

Using = (highest order title) and - (second-order title), the ATX form inserts 1 to 6 # at the beginning of the line, corresponding to the heading 1 to the 6 order.

The block reference uses the '>' angle brackets in the email form.

Markdown Syntax:

First level title ================= second level title-----------------# # # Header 3#### Header 4> block > > Block Second paragraph
Effect:



Rhetoric and emphasis


Markdown uses asterisks and the bottom line to mark the segments that need to be highlighted.

Markdown Syntax:

This sentence is * emphasis *. This sentence _ is also emphasized _. Use two asterisks for * * High emphasis * *. or use this method, __ two underline __.
Effect:



List


Unordered lists use asterisks , plus and minus signs as item markers for the list, which are all available

Use the asterisk:

* Beijing. * Shenzhen. * Zhengzhou.

Plus:

+ Beijing. + shenzhen. + Zhengzhou.

minus:

-BEIJING-Shenzhen.-Zhengzhou.

An ordered list is marked with a normal number followed by a period as an item:

1. Red2. Green3. Blue

Note: The asterisk, plus sign, and minus sign are followed by a space



Link


Markdown supports two forms of link syntax: inline and reference two forms, both of which use angle brackets to turn text into links.

The inline form is directly followed by a link in parentheses:

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

you can also choose to add the title attribute:

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

A link to a reference form allows you to define a name for the link, and then you can have the content of the link defined elsewhere in the file:

I am a reference link has the following forms [way one][1] or [way two][2] or [way three][3]. [1]: http://google.com/[2]: http://baidu.com/[3]: http://itmyhome.com "This is my blog"




Image


The syntax and links of the picture are very similar.

In-line form (title is optional)

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

Reference form:

! [ALT text] [ID] [ID]:/img.jpg "Title"

both of the above methods will output HTML as:



Code


In the general paragraph text, you can use the anti-quote ' to mark the Code section, the section of the &, < and > will be automatically converted into HTML entities,

This feature allows you to easily insert HTML within the Code section:

Markdown Syntax:

This is a code ' Hello World ' tag. The &, <, and > in the section will be parsed into HTML '-', '-', ' 

Effect:




Itmyhome

Original: Wheat Field Technology Blog


Markdown Quick Start

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.