Ionaru / Ionaru/easy-markdown-editor
Bold and italic toggle doesn't work properly selecting more lines.
- 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
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