Basic Syntax Template

Markdown Headings

1
2
3
# Heading 1
## Heading 2
### Heading 3

Markdown List

1
2
- List item
1. List item
  • List item
  1. List item

Markdown Font Styling

1
2
3
4
*Italic* or _Italic_
**Bold**
***Bold Italic***
~~Strikethrough~~

Italic or Italic

Bold

Bold Italic

Strikethrough

1
[Link text](Link URL "Title")

Markdown Images

1
![alt text](/path/to/img.jpg "Title")

Markdown Inline Code

1
`Inline code`

Inline code

Markdown Code Blocks

1
2
3
```python
#!/usr/bin/python3
print("Hello, World!");
1
2
3
4

```python
#!/usr/bin/python3
print("Hello, World!");

Markdown Blockquotes

1
> Quoted content

Quoted content

Markdown Horizontal Line

1
---

Markdown Paragraph Indentation

1
2
3
4
  or     Represents a half-width space
  or   Represents a full-width space
   Two full-width spaces (used more often)
  or   Non-breaking space

HTML Basic Syntax (Supplement to Markdown)

HTML Line Break

1
<br/>

Tables

Recommended plugins:

Markdown, as a lightweight language, has limited table functionality. It is generally recommended to use HTML for complex editing, or there are some amazing websites online that can export HTML language from Excel.

Markdown Tables

1
2
3
4
| Syntax      | Description |
| ----------- | ----------- |
| Header | Title |
| Paragraph | Text |
Syntax Description
Header Title
Paragraph Text

HTML Tables

   Rowspan Third person, colspan Singular

   Spaces , line breaks Row content

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<table border="1">
<tr>
<th>A</th>
<th>B</th>
<th>C</th>
<th>D</th>
</tr>
<tr>
<td rowspan="2">yo</td>
<td rowspan="2">soy</td>
<td>nosotros</td>
<td rowspan="2">somos</td>
</tr>
<tr>
<td>nosotras</td>
</tr>
<tr>
<td rowspan="2"></td>
<td rowspan="2">eres</td>
<td>vosotros</td>
<td rowspan="2">sois</td>
</tr>
<tr>
<td>vosotras</td>
</tr>
<tr>
<td>él</td>
<td rowspan="3">es</td>
<td>ellos</td>
<td rowspan="3">son</td>
</tr>
<tr>
<td>ella</td>
<td>ellas</td>
</tr>
<tr>
<td>usted</td>
<td>ustedes</td>
</tr>
</table>
A B C D
yo soy nosotros somos
nosotras
eres vosotros sois
vosotras
él es ellos son
ella ellas
usted ustedes

Images

When using hexo+markdown plugins, a folder with the same name as the .md file is automatically generated in the same directory (not sure which plugin generates it), then place local images inside it.

Markdown Images

Local image reference format:

1
2
![Image name](folder_name_same_as_md/subdirectory_name/image_name_with_extension)
![Pretend this is an image](markdownnote/pic.png)

Network image reference format:

1
2
![Image name](web_link)
![Pretend this is an image](https://aursus.github.io/netease-to-spotify/pic1.png)

HTML Images

Local image reference format:

1
2
<img src="folder_name_same_as_md/subdirectory_name/image_name_with_extension>
<img src="markdownnote/pic.png">

Network image reference format:

1
2
<img src="web_link">
<img src="https://aursus.github.io/netease-to-spotify/pic1.png">

Image Positioning

1
2
<div align="Position"><img src="web_link"></div>
位置=center/right/left

Image Size

1
2
<img src="markdownnote/pic.png" width="300" height="200" alt="figure_name">
<img src="markdownnote/pic.png" width="50%" height="50%" alt="figure_name">