MarkDown usage learning and MarkDown usage Learning

Source: Internet
Author: User

MarkDown usage learning and MarkDown usage Learning

The following are common MarkDown syntaxes and:


### Generate a directory

[TOC]


### Title
The title label is in the form of # adding text. A few stars represent several levels of titles.
# Level 1 title
# Level 2 Title
...


### List
Ordered list and unordered list.
Ordered list: starts with a number and starts with a number. + text.
1. 1
2. 2
3. 3


Unordered list: in the form of * + Text
* You
* Me
* She

Tip: Press Enter twice to jump out of the tag.


### Reference
Reference a text:> + Text
> The bright moon shines on the spring stone.


### Images and links
The two methods are similar. There are more picture links!
Link: [] ()
(Http://www.baidu.com)

Figure :! [] ()
! [Java] (http://i1.tietuku.com/3296f7c0c44d5cbb.jpg)


### Bold and italic
Bold: two stars + TEXT + two stars
Italic: one star + TEXT + one star
** Bold **
* Italic *


### Table

Item | price
-------- | ---
Computer | $1600
Phone | $12
Pipe | $1


You can use colons to define alignment:

| Item | price | quantity |
|: -------- | --------: |: --: |
| Computer | 1600 RMB | 5 |
| Phone | 12 RMB | 12 |

| Pipe | 1 RMB | 234 |


#### Code highlighting
The three anti-apostrophes enclose the code in pairs and add the language at the beginning of the tag, such as java and c.
'''Java
Public static void main (String [] args ){
System. out. println ("hello MarkDown ");
}

'''


Some tutorials refer to the use of a pair of anti-apostrophes to enclose the code. I found that you can also press the tab key at the beginning and end of the code line.

Public static void main (String [] args ){
System. out. println ("hello MarkDown ");
}


### Split line
Three stars

***


### Shortcut keys
-Bold 'ctrl + B'
-Italic 'ctrl + I'
-Reference 'ctrl + Q'
-Insert the link 'ctrl + l'
-Insert the code 'ctrl + K'
-Insert an image 'ctrl + G'
-Raise the title 'ctrl + H'
-Ordered list 'ctrl + o'
-Unordered list 'ctrl + U'
-Crossline 'ctrl + R'
-Undo 'ctrl + Z'
-Redo 'ctrl + y' # shortcut key


### Mathematical formulas
LaTex syntax reference:
[Here] (http://meta.math.stackexchange.com/questions/5020/mathjax-ba
Sic-tutorial-and-quick-reference)


### Flowchart and sequence diagram
[Sequence diagram syntax] (http://bramp.github.io/js-sequence-diagrams)

[Flowchart syntax] (http://adrai.github.io/flowchart.js)


** Notes **
-There must be a space at the beginning of the tag and the text, although sometimes it is unnecessary to add a space.

-All label symbols should be in English; otherwise, they will not work.

-About the picture link, there is a graph bed service site good: [here] (http://tietuku.com /)

Related Article

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.