mdx-editor / mdx-editor/editor
[BUG] Cannot generate into richtext when the source mode <>
Nobody has claimed this yet.
- 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
Reproduction
Try go to live demo, I also getting this error in there
To Reproduce
Steps to reproduce the behavior:
- In live demo, switch into source mode
- add something that begin
<>, into end </> for example<><p>test</p></> - Switch to Rich text mode, the error wil show
- 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
Browser Chrome
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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