How do I render a Table of Contents separately from the rest of the content? #2085
-
Hi, I'm trying to use <nav /> (TOC)
<h1 />
...
<p />
... (rest of the content) This is an issue because I wish to display the TOC on the right of the screen, and ideally I want to render it as such: <nav /> (TOC)
<div> (markdown goes here)
<h1 />
...
<p />
</div> Then it's very easy for me to style this because all of this is in a parent div with Is this possible at all? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
https://github.com/stefanprobst/rehype-extract-toc#how-to-use-with-mdx |
Beta Was this translation helpful? Give feedback.
https://github.com/stefanprobst/rehype-extract-toc#how-to-use-with-mdx