diff --git a/src/lib/mdx.ts b/src/lib/mdx.ts index 486c5a8..5c67b08 100644 --- a/src/lib/mdx.ts +++ b/src/lib/mdx.ts @@ -106,7 +106,7 @@ export const getPostBySlug = async (slug: string) => { const { code, frontmatter } = await bundleMDX({ source, - xdmOptions(options) { + mdxOptions(options) { options.remarkPlugins = [...(options?.remarkPlugins ?? []), gfmPlugin]; options.rehypePlugins = [