Markdown to create pages and table of contents?

后端 未结 30 2410
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-12 08:49

I started to use markdown to take notes.

I use marked to view my markdown notes and its beautiful.

But as my notes get longer I find it diff

30条回答
  •  囚心锁ツ
    2020-12-12 09:35

    In Visual Studio Code (VSCode) you can use the extension Markdown All in One.

    Once installed, follow the steps below:

    1. Press CTRL+SHIFT+P
    2. Select Markdown: Create Table of Contents

    EDIT: nowadays I use DocToc to generate the table of contents, see my other answer for details.

提交回复
热议问题