Automatic TOC in github-flavoured-markdown

后端 未结 17 1742
伪装坚强ぢ
伪装坚强ぢ 2020-12-12 09:24

Is it possible to generate an automatic Table of Contents using Github Flavoured Markdown?

17条回答
  •  猫巷女王i
    2020-12-12 09:56

    If you edit Markdown files with Vim, you can try this plugin vim-markdown-toc.

    The usage is simple, just move your cursor to the place you want to append Table of Contents and run :GenTocGFM, done!

    Screenshots:

    vim-markdown-toc

    Features:

    1. Generate toc for Markdown files. (Support GitHub Flavored Markdown and Redcarpet)

    2. Update existing toc.

    3. Auto update toc on save.

提交回复
热议问题