Generate a TOC (table of contents) for markdown files.