Markdown basic syntax

Source: Internet
Author: User
Markdown basic syntax

For the first blog, I don't know what to write. Just start with the markdown syntax!

1. Title 1.1 [H1 ~ H6]

The title is divided into H1 ~ H6. Generally, H1 is the big label of the Article. There is only one, and H3 is the paragraph title.

Note # use a space

# H1 H1 title

# H2 H2 title

H3 to H6 and so on

Demo

H1 H2 H3 1.2 category title

Code:

Level 1 title

==========

Level 2 Title

--------------

PS: =-either write or write

Demo

Level 1 title Level 2 Title 2. Emphasize

Italics *_

* Italic * or _ italic _

Bold

** Bold **

Strikethrough

~ Strikethrough ~

Example

Italics

Italics

Bold

Strikethrough

3. Reference

Simply use one>.

> Reference

> Reference

> Reference nesting

>>> Reference multi-layer nesting

4. Code

In markdown, how do we insert code?
You can use '''' to compile the code. You can also add the type of the Code to the end of '''' to display the syntax.

PS1: You can use 'to convert the code into a line.

PS2: Use tab to indent

'''Java
Pubic void get (){

}
'''

'Public void get (){

}
Public void put (){

}'

Demo:

public void get(){}

pubic void get(){ } pubic void put(){ }

5. Insert Link

Normal Link

(Http://www.baidu.com)

Email Link

[Email protected]

Demo:

Baidu 1

[Email protected]

6. insert an image

Make preparations before inserting images.

First step

1. Home Page configuration file_config.ymlInpost_asset_folder: Set the optiontrue

2. InhexoDirectorynpm install hexo-asset-image --save

Second step

1. UseHexo N "file name"When a file is generated, a folder with the same name will be generated, which can store image files.

6.1 insert a normal image

! [] (Markdown basic syntax/01.jpg 'description ')

6.2 insert an image with a link

[! [] (Markdown basic syntax/01.jpg 'description')] (http://www.baidu.com)

Demo:


Description

PS: if the image cannot be loaded like this, please refer to my next article {% post_link about the incorrect markdown image insertion path blog %}

Markdown basic syntax

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.