-
Hey guys, I have contentlayer and Fumadocs together, my anchor links from Fumadocs are not working in the Docs link. I believe it is something related to contentlayer and Fumadocs together. Bellow I have my
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Oops your toc compute field overrode the original toc field which contains the table of contents parsed by Fumadocs. We no longer provide the remark headings plugin on Contentlayer because they don't support exporting other properties from MDX file. You can still opt-in by passing the remark headings plugin, but I will recommend using Fumadocs MDX, it's a drop-in replacement and is actively maintained. |
Beta Was this translation helpful? Give feedback.
Oops your toc compute field overrode the original toc field which contains the table of contents parsed by Fumadocs.
We no longer provide the remark headings plugin on Contentlayer because they don't support exporting other properties from MDX file.
Remark headings is the plugin that parses table of contents and processes anchors, it needs a way to export its output so that you can access table of contents from your code. Now Contentlayer doesn't support a way to access the output yielded by a remark plugin. We used the suboptimal way, which parse the table of contents again by running remark again.
You can still opt-in by passing the remark headings plugin, but I will recommend using Fum…