Skip to content

Fix MDX plugin config to pass imported functions instead of strings - #24

Closed
George-Madeley with Copilot wants to merge 3 commits into
style/home-redesignfrom
copilot/sub-pr-23
Closed

George-Madeley with Copilot wants to merge 3 commits into
style/home-redesignfrom
copilot/sub-pr-23

Conversation

Copilot AI commented Mar 4, 2026 •

Copy link
Copy Markdown

next.config.ts had the remark-gfm, remark-math, and rehype-katex imports removed, leaving string literals in remarkPlugins/rehypePlugins. Unified expects callable plugin functions — passing strings causes MDX compilation to fail at build time.

Changes

  • next.config.ts: Re-adds the three plugin imports and passes the imported functions to the MDX config:
import remarkGfm from "remark-gfm";
import remarkMath from "remark-math";
import rehypeKatex from "rehype-katex";

const withMDX = createMDX({
  extension: /\.(md|mdx)$/,
  options: {
    remarkPlugins: [remarkGfm, remarkMath],
    rehypePlugins: [rehypeKatex],
  },
});

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@vercel

vercel Bot commented Mar 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
portfolio-wesbite Error Error Mar 4, 2026 8:54pm

Co-authored-by: George-Madeley <82886454+George-Madeley@users.noreply.github.com>
Copilot AI changed the title [WIP] WIP address feedback on home page styling and content revamp Fix MDX plugin config to pass imported functions instead of strings Mar 4, 2026

This branch had an error being deployed

1 failed deployment
Preview — 2bbd3be4 Deployed Mar 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants