Markdown to create pages and table of contents?

后端 未结 30 2735
爱一瞬间的悲伤
爱一瞬间的悲伤 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:17

    Use toc.py which is a tiny python script which generates a table-of-contents for your markdown.

    Usage:

    • In your Markdown file add where you want the table of contents to be placed.
    • $python toc.py README.md (Use your markdown filename instead of README.md)

    Cheers!

提交回复
热议问题