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.38k stars 314 forks source link

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

Open gabriosecco opened 2 years ago

gabriosecco commented 2 years ago

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