美文网首页
markdown语法简记

markdown语法简记

作者: 李云轩 | 来源:发表于2016-05-25 19:09 被阅读0次

    Code(font and section tips):

    Double "space" and an "Enter"  
    represents a newline.  
       
    One "space" and an "Enter" 
    will not end a line.
    
    *I'm gonna be italic form*  
    **I'm gonna be in bold**
    

    Effect(font and section tips):

    Double "space" and an "Enter"
    represents a newline.

    One "space" and an "Enter" will not end a line.

    I'm gonna be italic form
    I'm gonna be in bold


    Code(title):

    # Headline 
    ## Second-level heading
    ### Third-level heading 
    headline can also be presented in this way  
    ===
    subheadings can be presented in this way  
    ---
    

    Effect(title):

    Headline

    Second-level heading

    Third-level heading

    headline can also be presented in this way

    subheadings can be presented in this way

    Code(List):

    - Firstly
    - Secondly
    - Thirdly  
    
    
    1. Firstly
    2. Secondly
    3. Thirdly
    
    
    - Firstly
     + The first point is 
     + The next is
     + Final point is
    - Secondly
    - Thirdly
    

    Effect(List):

    • Firstly
    • Secondly
    • Thirdly
    1. Firstly
    2. Secondly
    3. Thirdly
    • Firstly
    • The first point is
    • The next is
    • Final point is
    • Secondly
    • Thirdly

    Code(Code):

    There should be four spaces in front of a new line for code.  
    
    C++:   
    
        #include <iostream>
        int main()
        {
            std::cout << "Hello, world!" << std::endl;
            return 0;
        }  
      
    java:  
    
        public class HelloWorld 
        {
            public static void main(String args[]) 
            {
                System.out.println("Hello, World!");
            }
        }
    
    
    python:  
    
        print 'Hello,World!'  
    

    Effect(Code):

    There should be four spaces in front of a new line for code.

    C++:

    #include <iostream>  
    int main()  
    {  
        std::cout << "Hello, world!" << std::endl;  
        return 0;  
    }    
    

    java:

    public class HelloWorld 
    {
        public static void main(String args[]) 
        {
            System.out.println("Hello, World!");
        }
    }
    

    python:

    print 'Hello,World!'  
    

    Code(Image and URL):

    hyperlink can be added in this way: [我的github](https://github.com/monkeydchopper)  
    insert an image: ![tonytonychopper](https://img.haomeiwen.com/i2100272/a11c8bb972955125.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)  
    图侵删  
    

    Effect(Image and URL):

    hyperlink can be added in this way: 我的github

    insert an image:

    tonytonychopper

    图侵删


    references:
    温谦的专栏文章 http://www.ituring.com.cn/article/23

    原文地址:我的主页文章

    相关文章

      网友评论

          本文标题:markdown语法简记

          本文链接:https://www.haomeiwen.com/subject/stmtdttx.html