@asdofindia/markdown-it-table-of-contents

A Markdown-it plugin for adding a table of contents to markdown documents (fork of Oktavilla's project with defaults changed)

Usage no npm install needed!

<script type="module">
  import asdofindiaMarkdownItTableOfContents from 'https://cdn.skypack.dev/@asdofindia/markdown-it-table-of-contents';
</script>

README

@asdofindia/markdown-it-table-of-contents

This is a fork of Oktavilla's markdown-it-table-of-contents that changes the default header levels included to [1, 2, 3, 4].

That's all it does.

(I had to do this because I couldn't set options in pug's template that uses jstransformer-markdown-it which calls markdown-it without setting options)