MarkDown

  |  
 阅读次数

These days, I am studying markdown snytax, and I hope my notes can help you master the basic writing of markdown.

Title
Paragraph
List
Emphasis
Link
Code
Images

Title

The first title

The second title

The third title

The sixth title

The first title

The second title

Here is the writing in markdown:

1
2
3
4
5
6
7
8
9
10
# The first title
## The second title
### The third title
...
###### The sixth title
The first title
===
The second title
---

Paragraph

  • Before you end the paragraph and add another paragraph, you have to add two spaces at the end of the line first and then press the button of “enter”, else if you just press the button of “enter”, what you are writing are actually still in the previous paragraph.

    The most important thing is to have fun.
    Only if you can deal with problems without complaint, can you enjoy the fun of harvest.
    We are by nature pursuit for simple, free and fun.

  • Besides, you can add a blank line between two paragraph, instead of two spaces.

    The most important thing is to have fun.
    Only if you can deal with problems without complaint, can you enjoy the fun of harvest.

    We are by nature pursuit for simple, free and fun.

List

  1. List in order: a number, then a space, finally a point, and the numbers do not need to be sorted.

    1. simple
    2. free
    3. confident
    4. diligent
    5. persistent
      1
      2
      3
      4
      5
      1. simple
      2. free
      4. confident
      3. diligent
      5. persistent
  2. List without order

    • simple
    • free
    • confident
    • diligent
    • persistent
      1
      2
      3
      4
      5
      - simple
      - free
      - confident
      - diligent
      - persistent

Emphasis

  1. emphasis
  2. emphasis
  3. emphasis
  4. line-through
1
2
3
4
*emphasis*
**emphasis**
***emphasis***
~~line-through~~
  • External Links

My Github
My Zhihu

1
2
[My Github](https://github.com/CammiePhan)
[My Zhihu](https://www.zhihu.com/people/xiao-yan-zi-91-23/activities)
  • Internal Links
  1. in the same repository : [something](something.md)
  2. in the same passage : [something](#title)

Code

  • Code segment
  1. Add 4 spaces to the begining of all lines
  2. Add three ` to the first line, and three ` to the final line.
    e.g:
    ```
    code segment
    ```
  • code line
    e.g: ` code line `

Images

  • External Links

![description](URL)
林峯

  • Internal Links

![my campus](MarkDown/campus.jpg)

my campus