Skip to content

Commit

Permalink
fix(mdx): replace xdm options with mdx options
Browse files Browse the repository at this point in the history
  • Loading branch information
codingcodax committed Jan 18, 2023
1 parent e6cd823 commit 5eaba41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/mdx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 5eaba41

Please sign in to comment.