Ionaru / Ionaru/easy-markdown-editor

Lists "travel" when switching from unordered to ordered lists

Open
#533 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**
Editor adds an empty whitespace each time you switch from unordered to ordered lists.

**To Reproduce**
Steps to reproduce the behavior:
1. Select multiple lines of text
2. Switch between unordered and ordered lists over and over again
3. Observe that there is an additional whitespace get added
4. Observe the "travel" when repeatedly doing this

**Expected behavior**
Switching between unordered and ordered lists should be seamless and result in no added characters.

**Screenshots**

![2023-02-25 16 12 57](https://user-images.githubusercontent.com/14940633/221361769-54d0f13a-a52d-43aa-b436-89a700f00626.gif)

**Version information**
- OS: macOS
- Browser: Safari, Latest Version
- EasyMDE version: Default, latest

**Additional context**
Great work on the editor!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.