Giter Site home page Giter Site logo

ghtoc's Introduction

ghtoc readme file

		  __    __            
   ____ _/ /_  / /_____  _____
  / __ `/ __ \/ __/ __ \/ ___/
 / /_/ / / / / /_/ /_/ / /__  
 \__, /_/ /_/\__/\____/\___/  
/____/
	-- generate "toc" for markdown

####Table of contents (toc is generated by ghtoc)

##Introduction

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

##Features & Limitation

  • 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)

##Usage

toc.py <md file>

then open the <md file> and check if you are satisfied with the generated toc

##License

MIT license

##Showcase

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.

I am happy to be the Section 1

Section 1 is my boss

Hey, the guy above, you are my boss!
I am not boss at all,shame!

I stand on Section2 and I am empty

No you are not, In my subSection, you find characters

Here I test: "([<&>]) and *$#+"

OK, that's it

% vim: nofoldenable

ghtoc's People

Contributors

sk1418 avatar

Watchers

James Cloos avatar Mia avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.