Markdown is a lightweight markup language that is similar to HTML, but is much better at readability than HTML.
Basic syntax:
1. Title and body separator lines
= = =/At least three consecutive equals, highest order title
---//or three consecutive minus signs, second high-order title
2. Title Font size
A number of # prefixes//#的个数对应于html中的 HX, i.e. 1 # for H1 size, 6 # for H6 size
3. Creating a Paragraph
Use one or more empty lines to separate the content segments that are used to generate the paragraphs. Only line breaks are used, but there are no blank lines between rows and rows, and the contents of those lines are connected to a block in the markdown, but there are spaces in the middle.
4. References
Use > as a paragraph mark to indicate that the paragraph content is a reference, and that the referenced content will display a reference mark when it is displayed.
You can use other tags within a reference, or you can use a deeper layer of references.
5. List
There are sequence tables, using
1. xxx
2. xxx
Wait for the number plus. form to represent an ordered list
Unordered list, using *, +,-prefix to indicate unordered list
6. Line break
If you are wrapping only inside a paragraph, you can use the <br> line break
7. Support for reference-linked formats, such as MKD code:
First, what is Markdown? We can look directly at [wiki][1] ...
In addition, Markdown can be compiled into HTML, such as using the online [pandoc][2]
[1]: Http://en.wikipedia.org/wiki/Markdown "Wiki_markdown"
[2]: Http://johnmacfarlane.net/pandoc/try "Pandoc Online"
Appears as a hyperlink in the final effect, but does not appear with a specific HTTP connection. This will not appear in the body of the link address this reader does not care about the information, but also as a variable can continue to be referenced elsewhere.
8. Support Shortcut Links
Use the < link address > form, such as <www.taobao.com>, to avoid HTML <a href= "http://ued.taobao.org" >http://ued.taobao.org </a> 's tedious.
9. Emphasizes
* Or _ Surround, display as italic; * * or __ surround to show as bold
10. Block of code (inverted single quotes)
Line in a code, using ' Codexx '; Code paragraph, using
```
code block xxxx
```
11. Forms
|item | Value | quality|
|:----| ---:|:---:|
|it1 | 1.0 | 5 |
|it2 | 2.0 |10|
In the MKD code, the vertical bar does not need to be aligned, only on the second line:---for left alignment,---: For right alignment,---: For middle alignment
Example MKD code:
## This isa title##===Hello, what is you doing?>Action speak louder than words### This isA level-3Header1. This isA ordered list12. This isA ordered list24. This isA ordered list3##### This isA level-4Header+ This isA unordered list4<br> and This isa newline- This isA unordered list5<br> This isAlso aNew Line* This isA unordered list6<br> ThisIsaNewLine too** This isA strong effect**__this isalso a strong effect__* This isA italic effect*_this isalso a italic effect_ "//This is a code block#include <iostream>using namespacestd;intMain () {cout<<"Hello World"<<Endl; return 0;} "First, what is Markdown?" We can look directly at [wiki][1] ... In addition, Markdown can be compiled into HTML, such as using the online [pandoc][2]|item | Value | quality| | -:| ---:|:---:|| it1 |1.0|5|| It2 |2.0|Ten|[1]: http://en.wikipedia.org/wiki/markdown "Wiki_markdown"[2]: http://johnmacfarlane.net/pandoc/try "Pandoc Online"
Show effect
This is a title
hello ,what are you doing ?
Action speak louder than words
This is a level-3 header
1.this is a ordered list 1
2.this is a ordered list 2
4.this is a ordered list 3
This is a level-4 header
- This is a unordered list4
And this is a newline
- This is a unordered list5
This was also a new line
- This is a unordered list6
This ISA new line too
This is a strong effect
This is also a strong effect
This is a italic effect
This is also a italic effect
//this is a code block #include<iostream>using namespace std;int main(){ cout << "hello world" << endl; return 0;}
First, what is Markdown? We can look directly at the WIKI ... In addition, Markdown can be compiled into HTML, such as using the online pandoc
Markdown Grammar Learning