UNPKG

markdown-it-table-of-contents

Version:

A Markdown-it plugin for adding a table of contents to markdown documents

14 lines (7 loc) 268 B
# Article {#my-article} Using custom heading id attributes via markdown-it-attrs. [[toc]] ## Welcome to the show {#section-1} Note the anchor targets for TOC links. ## This has no custom id The headline above falls back to the slugify function as anchor target.