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.17k stars 76 forks source link

after RichTextState.setHtml, RichTextState.getHtml will append an additional <br> #355

Closed XJianfei closed 1 month ago

XJianfei commented 1 month ago

After RichTextState.setHtml, if followed by
, the value returned by RichTextState.getHtml will have an additional
appended to the end.

val state = RichTextState() state.setHtml("<p>ABC</p><br>") state.getHtml() // return <p>ABC</p><br><br> set "<p>ABC</p><br>", but return <p>ABC</p><br><br> This will cause an extra line.

1.0.0-rc05 is work fine, rc06 and rc07 both have this issure

MohamedRejeb commented 1 month ago

Thanks for reporting this issue, I will check it.