# Markdown tutorial
#1. Set the title
It is to add "#" in front of the text, and use "#" to indicate the level of titles. (A total of 1 ~ Level 6 title, 1 is the largest title)
#2. Block comment
> Add ">" to the beginning of the text to indicate block comments. When five spaces are added after ">", the text will have a border.
#3. Set italics
Use one _ underline _ at both ends of the text to be set to italic, for example, __this is italic _, or use one ** asterisk **, for example: * This is italic *.
#4. unordered list
Add (*, +, and-) at the beginning of the text to implement unordered list. Note that a space must be added between (*, +, and-) and text. (Suggestion: a document only uses an unordered list representation ). For example:
* This is the list using the ** asterisk.
+ This is the list using the ** plus sign.
-This is the list using ** minus sign.
#6. ordered list
##### Use a number followed by a full stop. (Space is required)
1. This is ordered list 1
2. This is ordered list 2
3 .............
#7. Use links)
There are two methods in markdown: Implementation link: inline mode and reference mode.
** Inline mode: ** This Is My embedded blog park [embedded blog park] (http://www.cnblogs.com/superit ).
** Reference method :**
This is my favorite website list [embedded blog park] [1], [embedded Resource Sharing Platform] [2], [Baidu] [3], [Google] [4]
Http://www.cnblogs.com/superit "embedded blog Park"
Http://www.smileleeboo.howbbs.com "embedded Resource Sharing Platform"
Http://www.baidu.com "Baidu"
[4]: http://www.google.com.hk "google"
#8. Use Images
The image processing method is similar to the link processing method.
Inline mode :! [Alt text] (/path/to/img.jpg "title ")
Reference Method:
! [Alt text] [ID]
[ID]:/path/to/img.jpg "title"
#9. Use Code (the so-called code in HTML)
There are two implementation methods:
First, a code box appears in simple text. Use 'int A = 10; printf ("A = % d \ n", );'. ('Is not a single quotation mark, but under ESC in the upper left corner ~ ')
Type 2: Code boxes must be implemented for large texts. Use tab and four spaces.
Static void mdfile (char * filename)
{
File * file;
Md_ctx context;
Int Len;
Unsigned char buffer [1024], digest [16];
If (file = fopen (filename, "rb") = NULL)
Printf ("% s can't be opened \ n", filename );
Else
{
Mdinit (& context );
While (LEN = fread (buffer, 1, 1024, file ))
Mdupdate (& context, buffer, Len );
Mdfinal (Digest, & context );
Fclose (File );
Printf ("MD % d (% S) =", MD, filename );
Mdprint (Digest );
Printf ("\ n ");
}
#10. Use footnote)
The implementation method is as follows:
Hello [^ Hello]
[^ Hello]: Can you open it?
#11. Underline
Add three hyphens (-) below the blank line. (As mentioned above, add "-" below the text to implement Level 2 titles)
---
From Weizhi note (wiz)