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

Possibility to put the TOC in a specific element

Open nayaabkhan opened this issue 4 years ago • 7 comments

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 the sticky elements still remain in the flow of the document I have a weird spacing.

This could be a good use-case where I'd like to place the TOC in a pre-determined position in the document.

Happy to elaborate more if needed.

nayaabkhan avatar Jun 03 '20 07:06 nayaabkhan