Generate a TOC (table of contents) for markdown files, using the marked.js lexer and parser.