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.31k stars 308 forks source link

fix: the wrong text is inserted after uploading an image #580

Open ppodds opened 4 months ago

ppodds commented 4 months ago

🔗 Linked issue

Resolves #334. Resolves #574.

❓ Type of change

📚 Description

The original code inserted a link text after uploading the image. This pull request will correct it and ensure that the image name is respected when the file extension is included, particularly for known image extensions.

erossini commented 1 week ago

I saw your code. Thank you, it fixed my issue. If you like, here the full code https://github.com/erossini/EasyMarkdownEditor