MohamedRejeb / compose-rich-editor

A Rich text editor library for both Jetpack Compose and Compose Multiplatform, fully customizable, supports HTML and Markdown.
https://mohamedrejeb.github.io/compose-rich-editor/
Apache License 2.0
1.16k stars 74 forks source link

Provide option to keep the leading space when setting html #388

Open kotlinc0der opened 1 month ago

kotlinc0der commented 1 month ago

I have a RichText component acting as a preview for a RichTextEditor.

There are 3 issues:

Screen Shot 2024-10-04 at 12 37 15 AM Screen Shot 2024-10-04 at 12 35 50 AM Screen Shot 2024-10-04 at 8 39 02 PM Screen Shot 2024-10-04 at 8 38 49 PM

MohamedRejeb commented 1 month ago

Thanks for reporting this. I will check it. Currently spaces are being ignored because that's the expected behavior of HTML, but you are right the spaces from the editor shouldn't be ignored. I will be changing spaces to   when converting rich text to HTML.