mdx-editor / mdx-editor/editor
Spaces get encoded into unicode hex code ( )
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 307
- Avg merge
- 14h 22m
- Merged PRs (30d)
- 5
Description
When I enter multiple space characters, such as , in rich mode and then switch to source mode, I see the spaces encoded as Unicode hex codes:    . This behavior can be observed on the demo page: https://mdxeditor.dev/editor/demo.
I wouldn't expect Unicode symbols to appear in this context. Is that possible to preserve the original space characters?
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 by reproducing the issue on the demo page at https://mdxeditor.dev/editor/demo: enter multiple spaces in rich mode, then switch to source mode. Trace the rich-text to Markdown conversion for those spaces and verify that switching modes preserves literal spaces rather than displaying Unicode hex entities.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- markdown, react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100