经常使用markdown 的玩家一定很想要一个自动生成的导航栏吧,自己写的基本思路就是 轮询监听滚动条的位置,通过抛锚和跳锚实现,这里介绍一下今天的主角,markdown-toc插件: https://github.com/jonschlinkert/markdown-toc # 0x00 安装 TOC = Table of content , 将内容制作成导航 这个插件是基于 nodejs 的,因此需要安装 node 和 npm ,这里同样采用nvm的形式安装 curl -o- https:/…