基于GitHub项目:https://github.com/ekalinin/github-markdown-toc
- 安装执行文件
1 2 3
| wget https://raw.githubusercontent.com/ekalinin/github-markdown-toc/master/gh-md-toc // curl -O https://raw.githubusercontent.com/ekalinin/github-markdown-toc/master/gh-md-toc chmod a+x gh-md-toc
|
- 生成目录输出到命令行
1 2 3 4 5 6 7 8 9 10 11
| ./gh-md-toc ~/README.md
Table of Contents =================
* [Dockerfile.vim](#dockerfilevim) * [Screenshot](#screenshot) * [Installation](#installation) * [OR using Pathogen:](#or-using-pathogen) * [OR using Vundle:](#or-using-vundle) * [License](#license)
|