digitalmoksha / motion-markdown-it-plugins

Plugins for the motion-markdown-it gem
MIT License
1 stars 1 forks source link

table of contents #4

Open neumayr opened 6 years ago

neumayr commented 6 years ago

What do you think about adding a table of contents?

https://www.npmjs.com/package/markdown-it-table-of-contents

digitalmoksha commented 6 years ago

I'm open to it, just not sure which one to port. Was also considering https://www.npmjs.com/package/markdown-it-toc-done-right

neumayr commented 6 years ago

I originally found markdown-it because of vuepress is using it with a bunch of pretty nice defaults. They are using markdown-it-table-of-contents

:octocat: https://github.com/vuejs/vuepress/blob/master/lib/markdown/index.js#L12

📦 https://www.npmjs.com/package/markdown-it-table-of-contents