I've gotta dynamically render a Table of Contents for some Markdown content separate from the rest of the content. Is the best way to just crawl the rendered HTML and collect headers above a certain level or is there a better way to do that?