Summary of common grammar in Morkdown

Source: Internet
Author: User
Tags add numbers

Recommend a very useful Markdown editor: http://www.typora.io/

Basic tips:

Code highlighting

If you only want to highlight a function name or keyword in a statement, you can use the ' implement

The editor usually fits the appropriate highlighting method according to the diamagnetic fragment, but you can also "wrap a piece of code and specify a language

Supported languages:actionscript, apache, bash, clojure, cmake, coffeescript, cpp, cs, css, d, delphi, django, erlang, go, haskell, html, http, ini, java, javascript, json, lisp, lua, markdown, matlab, nginx, objectivec, perl, php, python, r, ruby, scala, smalltalk, sql, tex, vbscript, xml

You can also indent with 4 spaces and paste the code to achieve the same effect

Title
# # Big title ##### Small Title # # #
Bold Italic Body
* Italic text *    Italic Text _* * Bold text * * Bold    text __* * Bold Italic text * * * Coarse    Italic text ___
Link

Common link methods

Text link [link name] (http:// link url) URL link // link URL >

Advanced Link Tips
This link uses 1 as the URL variable [google][1]. This link uses yahoo as the URL variable [yahoo!] [Yahoo]. Then at the end of the document, assign a value to the variable (URL)  [1]: http://www.google.com/  [Yahoo]: http:/ /www.yahoo.com/

List

General unordered List

-Use the [Plus + space] * list text before using [minus + space]+ list text before the list text [asterisk + space]

General ordered List

1. Use [number + space]2 before the list. We'll automatically add numbers for you.

List nesting

1. List all elements:    - unordered list element a        1. Ordered sub-list    of element a -preceded by four spaces 2. Multi-paragraph wrapping in the list:    You must add four spaces in front    so that the whole format will not be 3. List references:    > front empty line     > still needs to be in >   Add four spaces to the front 4. List code snippet: "'    front four spaces, followed by code syntax ' write ' '        or directly empty eight, introduce code block

Reference

General references

> Quote text before using [greater than sign + space]> Fold line can not add, the new line to add OH

Nested references in references

> Outermost Reference > > Multiple > nested one-layer reference > > > Can nest many layers

Nested lists in references

>- This is a list of nested in References >- can also have sub-list >     * sub-list needs to start from-after four spaces delay

Nested code blocks in references

>      Similarly, add four spaces in front of the code block >  > '> ' or use ' ' to form blocks of code > '
Image

Summary of common grammar in Morkdown

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.