uiwjs / uiwjs/react-md-editor

Syntax highlighting for code does not work with next.js

Open
#682 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.9k
Forks
201
Avg merge
12m
Merged PRs (30d)
1

Description

I've installed the latest version of this package, which is supposed to take next.js. I can see that markdown renders correctly, but the code doesn't render syntax highlighting.

is this normal, and how can I solve it?
I didn't want to use nextjs package next-remove-imports to solve the problem.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in a Next.js application using the latest package version, confirming that Markdown renders while code lacks syntax highlighting. Investigate the package's Next.js integration and compare the result with the reported next-remove-imports workaround; done means syntax highlighting works without that workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
next.js, react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.