Ionaru / Ionaru/easy-markdown-editor

Bold and italic toggle doesn't work properly selecting more lines.

Open
#462 0 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
JavaScript
Stars
3.1k
Forks
363
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
-create two rows (second row in a new line)
-put the cursor at the end of second line
-press control A to select all
-press control B to select bold (it correctly select bold)
-press control B again to to toggle bold, but it leaves the last ** delimiter

**Expected behavior**
when I press control B the second time it should remove any bold delimiter

same for italic

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the EasyMDE editor using two lines, Ctrl+A, and repeated bold or italic toggles. Trace the selection-formatting behavior for the editor entry point, then verify that toggling off removes all formatting delimiters, including the trailing delimiter.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, markdown
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.