mdx-editor / editor

A rich text editor React component for markdown
https://mdxeditor.dev
MIT License
1.57k stars 124 forks source link

[BUG] #478

Closed OSokunbi closed 1 month ago

OSokunbi commented 1 month ago

Description When using the image plugin with the MDXEditor component, backslashes are being added to the Markdown syntax for images. This causes issues with image rendering and prevents proper functionality of the image plugin.

Reproduction To reproduce the issue:

Reproduce

To reproduce you can:

Use the MDXEditor component with the image plugin enabled. Attempt to insert an image using the Markdown syntax (). Console log the output of the onChange event handler to observe the presence of backslashes in the Markdown syntax.

While the image appears normally inside of the contentEditable it really has backslashes, preventing it from being rendered properly Desktop

OS: Windows Browser: Chrome

petyosi commented 1 month ago

I feel like you're misunderstanding the purpose of the editor component. You're not supposed to write markdown formatting in the rich text area. However, the explanation you're giving is unclear to me, I'm afraid.