markdown语法简记

2016-05-25  本文已影响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):

  1. Firstly
  2. Secondly
  3. 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

原文地址:我的主页文章

上一篇下一篇

猜你喜欢

热点阅读