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.yml
Inpost_asset_folder
: Set the optiontrue
2. Inhexo
Directorynpm 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