markdown-it-table-of-contents
Version:
A Markdown-it plugin for adding a table of contents to markdown documents
3 lines (2 loc) • 355 B
HTML
<h1>Heading with <em>emphasis</em> and <strong>bold</strong> and <code>code</code> and <img src="test.png" alt="img"></h1>
<div class="table-of-contents"><ul><li><a href="#heading-with-emphasis-and-bold-and-code-and-img">Heading with <em>emphasis</em> and <strong>bold</strong> and <code>code</code> and <img src="test.png" alt="img"></a></li></ul></div>