uiwjs / uiwjs/react-md-editor

Cursor Misalignment in React Markdown Editor When Typing Lists

Open
#689 3 comments 3 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

Image

<MDEditor
	value={value}
	onChange={onChange}
	height={height}
	preview="edit"
	hideToolbar={false}
	data-testid="mdx-visual-editor"
	data-color-mode="light"
		/>

In the React Markdown Editor, when I type list items like 1., 2., 3., or *, the visible text appears below the actual line, and the | cursor shows on a different (incorrect) line. The correct text is rendered, but it's not visible in the right place while typing.

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 cursor and visible-text misalignment in the MDEditor configuration shown, using ordered and unordered list items while typing. Trace the editor's text rendering and cursor positioning behavior; done means list text remains aligned with the cursor during input.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.