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.45k stars 319 forks source link

Bold, italic toggle at end of word causing issues. #48

Open shivakaranj opened 5 years ago

shivakaranj commented 5 years ago

I'm submitting a...

Reproduction steps

  1. Place cursor at end of word and click bold multiple times like toggling. It adds multiple and activating italic instead of removing the initial bold image

image

Version information

Browser type and version: Chrome Version 70.0.3538.77 EasyMDE version: 2.5.1

Ionaru commented 5 years ago

What do you expect the behaviour to be in this situation?

(It seems the GitHub editor has a similar issue)

shivakaranj commented 5 years ago

Same effect as when selecting a word and toggling bold, it should apply and remove the . As selecting a word has toggle bold, I have seen users trying the same when cursor is not selecting any word and getting a bunch of trying to toggle it.

Also, thank you for the wonderful markdown editor. It’s simple and easy to use.