How do I create some kind of table of content in GitHub wiki?

后端 未结 9 629
孤城傲影
孤城傲影 2021-01-30 02:05

If you look here: http://en.wikipedia.org/wiki/Stack_Overflow

You\'ll notice there\'s a little \"Content\" section, if you click on one of the links, it will send you to

9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-30 02:49

    Visual Studio Code

    If you happen to use Visual Studio Code, there is easy-to-use extension called Markdown All in One that can make the TOC for any .md file in an instant.

    Just open Command Palette (Ctrl-Shift-P) -> Markdown: Create Table of Contents

    Auto-update messes your edited TOC?

    As an additional tip, you might want to turn the "automatic TOC updates on save" OFF by using

      "markdown.extension.toc.updateOnSave": false,
    

    in your Visual Studio Settings (Command Palette -> Preferences: Open Settings (JSON)).

提交回复
热议问题