We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm attempting to use the mdx-table-of-contents package with next.js but when I import the tableOfContents object it's undefined:
mdx-table-of-contents
tableOfContents
import Document , { tableOfContents } from "../../../reference-api.mdx";
Here's what my next.config.js file looks like:
const toc = require("mdx-table-of-contents"); const withMDX = require("@next/mdx")({ options: { remarkPlugins: [toc], }, extension: /\.mdx?$/, }); module.exports = withMDX({ pageExtensions: ["js", "jsx", "md", "mdx", "ts", "tsx", "svg"], });
Any idea what I'm doing wrong?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm attempting to use the
mdx-table-of-contents
package with next.js but when I import thetableOfContents
object it's undefined:import Document , { tableOfContents } from "../../../reference-api.mdx";
Here's what my next.config.js file looks like:
Any idea what I'm doing wrong?
The text was updated successfully, but these errors were encountered: