react-rte icon indicating copy to clipboard operation
react-rte copied to clipboard

Markdown generation for leading and trailing spaces is wrong

Open pbalzano91 opened this issue 5 years ago • 1 comments

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.

image

Any workarounds for this?

pbalzano91 avatar Aug 28 '19 20:08 pbalzano91

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?

DavidHanover avatar May 03 '21 22:05 DavidHanover