nextjs - 💡(How to fix) Fix @next/mdx: String format plugins not working with Turbopack and `mdxRs` flag enabled [4 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vercel/next.js#84258Fetched 2026-04-08 02:20:09
View on GitHub
Comments
4
Participants
3
Timeline
10
Reactions
0
Author
Timeline (top)
commented ×4labeled ×3closed ×1issue_type_added ×1

Code Example

git clone https://github.com/PlagueFPS/next-turbopack-mdx-repro
   cd next-turbopack-mdx-repro
   npm install

---

npm run dev

---

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Home
  Available memory (MB): 32586
  Available CPU cores: 16
Binaries:
  Node: 22.18.0
  npm: 10.5.1
  Yarn: N/A
  pnpm: 10.14.0
Relevant Packages:
  next: 15.6.0-canary.31 // Latest available version is detected (15.6.0-canary.31).
  eslint-config-next: N/A
  react: 19.1.0
  react-dom: 19.1.0
  typescript: 5.9.2
Next.js Config:
  output: N/A
RAW_BUFFERClick to expand / collapse

Link to the code that reproduces this issue

https://github.com/PlagueFPS/next-turbopack-mdx-repro

To Reproduce

Steps to Reproduce

Clone and install:

git clone https://github.com/PlagueFPS/next-turbopack-mdx-repro
cd next-turbopack-mdx-repro
npm install

Run the dev server:

npm run dev

Open the app:
Visit http://localhost:3000.

Current vs. Expected behavior

Expected:
The table in test-content.mdx should render as an HTML table (since remark-gfm is enabled).

Actual:
The table renders as plain text, not as an HTML table.
This shows that remark-gfm is not applied.

Provide environment information

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Home
  Available memory (MB): 32586
  Available CPU cores: 16
Binaries:
  Node: 22.18.0
  npm: 10.5.1
  Yarn: N/A
  pnpm: 10.14.0
Relevant Packages:
  next: 15.6.0-canary.31 // Latest available version is detected (15.6.0-canary.31).
  eslint-config-next: N/A
  react: 19.1.0
  react-dom: 19.1.0
  typescript: 5.9.2
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Markdown (MDX), Turbopack

Which stage(s) are affected? (Select all that apply)

next dev (local), next build (local)

Additional context

No response

extent analysis

TL;DR

The issue can likely be resolved by configuring remark-gfm correctly in the Next.js project to enable GitHub Flavored Markdown support for MDX files.

Guidance

  • Verify that remark-gfm is properly installed by checking the project's package.json file for the dependency.
  • Check the Next.js configuration file (usually next.config.js) to ensure that remark-gfm is included in the MDX options.
  • Review the MDX file (test-content.mdx) to confirm that it contains valid GitHub Flavored Markdown syntax for tables.
  • Test the application with a simple Markdown table in the test-content.mdx file to isolate the issue.

Example

No code example is provided due to the lack of specific configuration details in the issue.

Notes

The solution may depend on the specific version of remark-gfm and Next.js being used, as well as the project's configuration. Additional debugging may be necessary to identify the root cause of the issue.

Recommendation

Apply workaround: Configure remark-gfm correctly in the Next.js project, as the issue seems to be related to the incorrect application of GitHub Flavored Markdown syntax.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING