react-rte
react-rte copied to clipboard
Markdown generation for leading and trailing spaces is wrong
This can be reproduced in the demo page: https://react-rte.org/demo.
If I give, for example, bold format to a piece of text, when generating the markdown, it leaves the leading and trailing whitespaces in-between, resulting in invalid markdown which can't be transformed into desired HTML. This is very common when editing content, where you can turn bold on, type a word, press spacebar, and turn it off. Or select a piece of content with a leading whitespace on a huge block of text.
Any workarounds for this?
also have a problem with this. getting passed invalid markdown from this component that is causing issues with different components when trying to render that invalid markdown. is this project still maintained?