uiwjs / uiwjs/react-md-editor

(Bug report) Automatic list continuation has overly aggressive pattern detection

Open
#703 2 comments 0 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

Steps to reproduce:

  1. Open any form that uses the markdown editor
  2. Type 1x (the number 1 followed by the letter x and a space)
  3. Press Enter to create a new line

Expected result
The cursor should move to a new line without any automatic text insertion. The user should have full control over what is typed on the new line.

Actual result
The markdown editor automatically inserts 2. (the next number in the sequence followed by a period) on the new line, treating 1x as the start of an ordered list.

Is this a bug or expected behavior? Thanks!

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 locating the markdown editor's automatic list-continuation logic and reproduce the reported steps with 1x followed by Enter. Done means the editor leaves the new line empty for 1x while continuing to insert the next marker for valid ordered-list 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
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.