ghtoc readme file
__ __
____ _/ /_ / /_____ _____
/ __ `/ __ \/ __/ __ \/ ___/
/ /_/ / / / / /_/ /_/ / /__
\__, /_/ /_/\__/\____/\___/
/____/
-- generate "toc" for markdown
(toc is generated by ghtoc)
GitHub doesn't provide a [[toc]]
like function to generate toc(Table of contents) for markdown file. But sometimes an outline of a long readme file or other markdown page is very helpful. That's why does the simple ghtoc come.
ghtoc was written and tested with python 2.7.8
- auto backup the input file before toc was generated and inserted
- currently only support converting
## Section
-like format into toc. - doesn't support unicode characters in
##sections
(the link generated by github doesn't work anyway)
toc.py <md file>
then open the <md file>
and check if you are satisfied with the generated toc
MIT license
ghtoc is so simple that itselves readme file won't contain much information. I just put here some example to let the toc in this page have some stuffs. Also it shows how the toc generated by ghtoc look like.
% vim: nofoldenable