Ionaru / easy-markdown-editor

EasyMDE: A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://stackblitz.com/edit/easymde
MIT License
2.32k stars 308 forks source link

Lists "travel" when switching from unordered to ordered lists #533

Open preist opened 1 year ago

preist commented 1 year ago

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

Version information

Additional context Great work on the editor!