mdx-editor / mdx-editor/editor

[BUG] Cannot generate into richtext when the source mode <>

Open
#776 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
3.7k
Forks
307
Avg merge
14h 22m
Merged PRs (30d)
5

Description

Describe the bug
I found the bug when i write <>something</>, in source mode, then i switch into rich text, i getting error in dev tools

Image

Reproduction
Try go to live demo, I also getting this error in there

To Reproduce
Steps to reproduce the behavior:

  1. In live demo, switch into source mode
  2. add something that begin <>, into end </> for example <><p>test</p></>
  3. Switch to Rich text mode, the error wil show
  4. After error, I cannot continue my source, the result will stuck in error when i switch to rich text

Expected behavior
If my source wrong, tell the error like this

Image

Browser Chrome

Contributor guide

Open the contributing guide

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 with the live demo and follow the listed reproduction steps: enter source mode, add malformed angle-bracket content, and switch to Rich text mode. Trace the source-to-rich-text transition and compare the result with the expected error shown in the report. Done means invalid source produces a user-facing error without leaving the editor stuck.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown, react, typescript
Domain
content, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.