Skip to content

Conversation

@JBou
Copy link

@JBou JBou commented Jan 9, 2026

First of all, thanks a lot for this awesome library and the work you are doing! It is the best component for formatting text using Compose, that i found.

When we had a formatted text with 2 spans (like **__Welcome__**), and we typed an a inside, we got **__Wel**__a__**come__** (nested spans inside the other ones).

This is a fix, that groups spans by style before merging to prevent different styles from interfering with each other's merge logic.

I also added a unit test to verify overlapping styles (bold and underline) are handled correctly during text insertion.

Group spans by style before merging to prevent different styles from interfering with each other's merge logic. Added a unit test to verify overlapping styles (bold and underline) are handled correctly during text insertion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant