A simple tutorial document for markdown syntax

The following is a simple Markdown syntax tutorial:

  1. Title: Prepending the text #creates a title. By increasing #the number of , you can create second-level titles, third-level titles, etc. For example:

    # 一级标题
    ## 二级标题
    ### 三级标题
    
  2. Lists: use -or *to create an unordered list, numbers and .to create an ordered list. For example:

    - 无序列表项一
    - 无序列表项二
    1. 有序列表项一
    2. 有序列表项二
    
  3. Links: [链接文本](链接地址)Links can be created using the format of . For example:

    [Google](http://www.google.com)
    
  4. Picture: Use ![替代文本](图片地址)the format of to insert pictures. For example:

    ![Google Logo](http://www.google.com/images/logo.png)
    
  5. Bold and Italic: **Text enclosed with will become bold, and *text enclosed with will become italic. For example:

    **这是粗体文本**
    *这是斜体文本*
    
  6. 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!")
    
  7. References: Use >to create references. For example:

    > 这是一段引用
    
  8. 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 .mda file and start using Markdown syntax. VS Code also has a built-in preview function, which you can Viewselect in the menu Open Previewor press Ctrl+K Vthe shortcut key to open.

Guess you like

Origin blog.csdn.net/hbqjzx/article/details/131498014