Generate TOC of headlines from parsed markdown file.