Replies: 1 comment
-
Err, I think the way you have it, is like: export const metadata = {
title: 'hello world',
};
# Hi there
Lorem ipsum
And you most likely do it like: export default async function Page() {
const mdx = await import('./content.mdx');
console.log('metadata: ', mdx.metadata);
const BlogPost = mdx.default;
return <BlogPost />;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I am using next/mdx with next-intl and as recommended I am importing en.mdx and otherLocales.mdx dynamically like this
The problem: I need to extract table of contents, but installing plugins like remark-toc or rehype-extract-toc do absolutely nothing.
I am following the guide use next.config.mjs but no table of contents appears.
I would appreciate help with understanding how to make plugins work
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions