mdx-editor / mdx-editor/editor

Spaces get encoded into unicode hex code ( )

Open
#103 1 comment 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request/enhancement hacktoberfest
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.