Skip to content

Instantly share code, notes, and snippets.

@chriscasola
chriscasola / README.txt
Last active June 13, 2022 08:30
A python script to generate a table of contents for a GitHub Flavored markdown file. The file must contain a level one header with a title that contains "Table of Contents". The script will generate a TOC containing all level 1, 2, and 3 headers.
A python script to generate a table of contents (with links) for a GitHub Flavored markdown file.
The file must contain a level one header with a title that contains "Table of Contents".
The script will generate a TOC containing all level 1, 2, and 3 headers.
Run the script like this:
python tocgen.py inFileName outFileName
BEFORE file:
--------------------------------------------------------
This is my GitHub wiki page.