TOC generator and Heading numbering for Markdown files