From 5eaba41f94031c223cbe4f6621731597823fdd4d Mon Sep 17 00:00:00 2001 From: Alexis Guzman Date: Wed, 18 Jan 2023 10:21:22 -0600 Subject: [PATCH] fix(mdx): replace xdm options with mdx options --- src/lib/mdx.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = [