gh-md-toc在github上快速生成目录的工具

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_20009015/article/details/84728963

我们在github上写readme.md的时候会发现,github的markdown语法不支持IOC自动生成目录,因此需要我们自己去手动写,那也太麻烦了,好在已经有大神开源了一个可以根据标题标记自动生存目录的工具

https://github.com/ekalinin/github-markdown-toc

Linux

$ wget https://raw.githubusercontent.com/ekalinin/github-markdown-toc/master/gh-md-toc
$ chmod a+x gh-md-toc

OSX

$ curl https://raw.githubusercontent.com/ekalinin/github-markdown-toc/master/gh-md-toc -o gh-md-toc
$ chmod a+x gh-md-toc

用法./gh-md-toc 文件名.md

比如说直接 

./gh-md-toc /Users/laixiaoxing/Documents/concurrent_learn/README.md

注意 这个命令 ./gh-md-toc    

将里面的内容复制下来粘贴到自己的reame.md里面就行了。

然后上传到github上即可

猜你喜欢

转载自blog.csdn.net/qq_20009015/article/details/84728963