2. VScode Markdown 使用技巧

Markdown 常用语法汇总

  • 标题

    # <h1> 一级标题
    ## <h2> 二级标题
    ### <h3> 三级标题
    #### <h4> 四级标题
    ##### <h5> 五级标题
    ###### <h6> 六级标题
  • 强调

    *这是 斜体 的文字*
    _这是 斜体 的文字_
    **这是 粗体 的文字**
    __这是 粗体 的文字__
    _可以 **组合** 这些符号_
    ~~这段文字将被划横线~~
  • 无序列表

    * Item 1
    * Item 2
      * Item a
      * Item b
  • 有序列表

    1. Item 1
    2. Item 2
    3. Item 3
       1. Item a
       2. Item b
  • 插入图片

    ![图片文字](https://78.media.tumblr.com/5e3096a99b47cf98d0e7325de6721e86/tumblr_p85luqdNCh1s4ploho1_400.png)
  • 插入链接

    [Unicampus](https://www.unicampus.co.uk/)
  • 锚点用于页面内跳转,在需要跳转到的地方设置锚点

    <h1 id="here">跳转到这里</h1>
  • 在需要跳转的地方,设置跳转链接

    [跳转](#here)
  • 引用

    >  If you dont have any shadows you're not in the light —— Lady Gaga
  • 分割线

    三个或者更多的
    ----
    连字符
    ***
    星号
    ___
    下划线
  • 行内代码

    行内代码在这里使用`<str>` 才对
  • 代码块

    两对三个反引号之间的内容会被识别为代码块。注意反引号前边不要带空格

    var hello = 69 console.log(hello)

  • 语法高亮

      ```javascript
      var hello = 69
      console.log(hello)

    ```

  • 任务列表

      - [x] @mentions, #refs, [links](), **formatting**, <del>tags</del> supported.
      - [x] list syntax required (any unordered or ordered list supported).
      - [x] this shows a complete item.
      - [ ] this shows an incomplete item.
  • 表格

    表格对齐格式
          居左::----
          居中::----:或-----
          居右:----:
      注意:表格之前一定要加一个空行
    语法
      标题 | 标题 | 标题
      :--- | :---: | ---:
      居左文本 | 居中文本 | 居右文本
      居左文本1|居中文本2|居右文本3
      居左文本1a|居中文本2a|居右文本3a
      居左文本1b|居中文本2b|居右文本3b
  • 脚注

      Hello world! [^label] 
    文末插入脚注内容
      [^label]: Here we go 
      #这里特别注意'^'的输入, 如果出现问题, 有可能是输入法的问题, Macbook下请使用 U.S.输入法, 不要使用 U.S.International-PC 输入法.

Last updated