The following is a simple Markdown syntax tutorial:
-
Title: Prepending the text
#
creates a title. By increasing#
the number of , you can create second-level titles, third-level titles, etc. For example:# 一级标题 ## 二级标题 ### 三级标题
-
Lists: use
-
or*
to create an unordered list, numbers and.
to create an ordered list. For example:- 无序列表项一 - 无序列表项二 1. 有序列表项一 2. 有序列表项二
-
Links:
[链接文本](链接地址)
Links can be created using the format of . For example:[Google](http://www.google.com)
-
Picture: Use
![替代文本](图片地址)
the format of to insert pictures. For example:![Google Logo](http://www.google.com/images/logo.png)
-
Bold and Italic:
**
Text enclosed with will become bold, and*
text enclosed with will become italic. For example:**这是粗体文本** *这是斜体文本*
-
Code: Text surrounded by backticks ` is treated as code. You can also add syntax highlighting to your code if you put the language name after the opening backtick. For example:
`这是一段代码` ```python print("Hello, World!")
-
References: Use
>
to create references. For example:> 这是一段引用
-
Dividing line: Use
---
or***
to create a dividing line. For example:---
The above is the basic grammar of Markdown. For more advanced usage, such as tables, task lists, etc., you can refer to this more detailed Markdown guide .
In Visual Studio Code, you can directly create .md
a file and start using Markdown syntax. VS Code also has a built-in preview function, which you can View
select in the menu Open Preview
or press Ctrl+K V
the shortcut key to open.