Creates a table of contents from the headings in Markdown content