Add table of contents to Markdown-generated HTML