A pre-commit Git Hook that will generate all the Table of Contents you will ever need. Just write your content, and let it take over.