rehype-toc icon indicating copy to clipboard operation
rehype-toc copied to clipboard

A rehype plugin that adds a table of contents (TOC) to the page

Results 10 rehype-toc issues
Sort by recently updated
recently updated
newest added

Hi! Thank you for your work on this library, I just implemented it in the next version of my personal website/blog to generate a TOC for my blog posts since...

Is there a way to specify a selector within which I can put the TOC? I have a use-case where I want to make the TOC `position: sticky`. But because...

enhancement
help wanted

Currently you can customize the installation to hide the table of contents if there are no items by doing this: ```js customizeTOC: (toc) => { if (toc.children[0].children.length > 0) {...

I'm creating a blog using NextJs13 and MDX, I have added a table of contents to my pages using [rehype-toc](https://github.com/JS-DevTools/rehype-toc). I want the table (so element) to be outside the...

Thanks for this awesome plugin, and I'm trying to wrap a for created TOC, but for some reason, It seems does not support the feature. Here is my related code:...

I would like to extract the TOC without injecting it back so I can have a bit more control of what to do with it. Primarily the rendering of such...

The shape of the `node` object passed to `customizeTOC` doesn't match the [`Node`](https://github.com/syntax-tree/unist#node) interface as specified by the latest version of `unified`. This is what the plugin is passing: ```js...

Hi! This pull request adds the option to extract the ToC away from the root of the rest of the document. This way, if you pass in the relevant option...

Hi, This pull request will add the ability to put the table of content in place of a string placeholder. For that I have refactored a little bit your plugin...

For people who want logic similar to this project, but want the ability to further customize how the table is rendered, here is a simple ReScript implementation of similar heading...