Skip to content

Instantly share code, notes, and snippets.

@mioz2077
Created November 18, 2017 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mioz2077/78ea60b850f8bbd4a488adb44c2c99c8 to your computer and use it in GitHub Desktop.
Save mioz2077/78ea60b850f8bbd4a488adb44c2c99c8 to your computer and use it in GitHub Desktop.
Markdown : 为md文件自动生成侧边栏目录

Markdown : 为md文件自动生成侧边栏目录

装载侧边栏生成插件

  • 配置node.js 环境(Mac平台直接去官网下载即可)
  • 在终端输入 npm install -g i5ting_toc 下载插件

使用插件进行文档处理

  • 进入md文件所在文件夹,终端输入
i5ting_toc -f sample.md -o  //sample.md为所需转换文件名称
  • 插件会自动生成由md文件转换得到的带侧边栏目录的html文件

插件源码及其使用说明: 侧边栏生成插件

@kongkong-mia
Copy link

Hello,the author,I met the question that for mac system the generating sentence of "i5ting_toc -f sample.md -o /Users/tianshan/Downloads/test.html" can't find the output file in -o directory,please help me. And otherside , the tool is perfect.I wish your reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment