1. Title
In Markdown, you just need to precede the text with #. In the same vein, you can add two-level titles, three-level titles, four-level titles, five-level titles, six-level titles, six levels, and just add #. The title font size is correspondingly reduced, for example:
#一级标题##二级标题###三级标题####四级标题#####五级标题######六级标题
Note: It is recommended to keep a single character space between #和 "one-level title", which is the most standard markdown notation
2. List
In Markdown, you just need to add-or + on the word card surface, for example:
- 文本一 - 文本二 - 文本三
If you want to have a sequence table, precede the text with 1. 2.3. You can, for example:
1. 文本一 2. 文本二 3. 文本三
The effect is as follows (the preceding > symbol indicates a reference), and if the-text "is not placed at the beginning of the line, it shows the Hollow circle:
Text One
Text Two
Text Three
- Text One
- Text Two
- Text Three
Note:-and 1. A space is left between the text, but when you follow the code, the Code requires two tabs (tab) or 8 spaces to display correctly.
3. Links, hyperlinks, pictures and code
In Markdown, when you insert a link, you only need to use syntax such as [use text] (link address), for example:
MarkDown
In Markdown, when you insert hyperlinks (URLs, mailboxes, and so on), you only need to include them in <>, for example:
[Email protected]
Http://www.jianshu.com
In Markdown, when you insert a picture, you only need to use it! [] (image link address) such a syntax can be, for example:
In Markdown, create a block of code, as long as you add a tab or 4 spaces before the text, for example:
- (void)hello { nslog(@"hello world"); }
Note: The syntax for inserting a picture is much like the syntax of a link, just one more front!. Here the [], (),! Symbols are English symbols.
4. Forms
The format is as follows:
Center row name, data left
Tables |
| is
Cool |
Col 3 is |
right-aligned |
$1600 |
Col 2 is |
Centered |
$ |
Zebra Stripes |
Is neat |
$ |
-
Row name centered, data centered
tables |
are |
cool |
col 3 is |
right-aligned |
$1600< /td> |
col 2 is |
centered |
$12 |
zebra stripes |
are neat |
$1 |
-
Row name is left, data is left
tables |
are |
cool |
col 3 is |
right-aligned |
$1600 |
col 2 is |
centered |
$12 |
zebra stripes |
are neat |
$1 |
Row name right, data right
Tables |
| is
Cool |
Col 3 is |
right-aligned |
$1600 |
Col 2 is |
Centered |
$ |
Zebra Stripes |
Is neat |
$ |
Note: The vertical line on both sides is optional, but there must be, there is no.
5. Other
Enter
A carriage return indicates a line break
Two carriage return indicates a change of segment
Reference
In markdown you just need to add > in front of the text you want to refer to, for example:
A lamp, a dusk;
Note:> and text suggest keeping a space between
Bold and italic
In Markdown, two contains a paragraph of text is bold, with a paragraph containing a text is italic, for example:
Bold body
Italic body
Bold Italic Body
A minus sign or two minus sign, you can generate a solid horizontal line (the book does not support this format, the unit cannot be displayed)
Text highlighting
Just use the text to include it. For example:
突出显示文本
Text annotations
Just use a format like [xxx], but you have to have the same [xxx] at the end of the article to explain the content, for example:
[1]
Special symbols
When you need to insert special symbols in the text, you need to precede the special symbols with backslashes, for example:
#hello
Note: The special symbol here is not just a single special symbol, but when special symbols and text or special symbols combined to form a special format, if you need to display special symbols, you need to add \. The # and hello combinations above will display the hello as the caption, if you need to display #hello at this point, you need to add \ before #.
6. Summary
The above syntax is only the basic syntax of markdown, in the actual use of multiple syntax is often mixed use, specific rules to be used in the specific experience. Individuals find it much easier to take notes with markdown than to use simple text, and to write things that are more readable.
Okey,happy writing!
* * Note: After a period of time the use of the sense of the text mentioned in the use of code block method is more stupid, continuous tab or space to make the composition of the article is very messy, here to introduce a more simple method, using
"' Bash
code block
Hello?
Zaize
Links: https://www.jianshu.com/p/148e26058916
Source: Pinterest
Copyright belongs to the author. Commercial reprint please contact the author for authorization, non-commercial reprint please specify the source.
Summary of the usage specification of Macdown