<!-- Please provide a clear and concise description of what the bug is. Include screenshots if needed. Please test using the latest version of the relevant Lexical packages to make sure your issue has not already been fixed. --> Lexical version: 0.40.0 ## Steps To Reproduce 1. Type bolded "hello" in the editor 2. Move the cursor between "he" and "llo" 3. Press the Shift + Enter key twice 4. Move the cursor between the two linebreaks 5. Start Typing any character <!-- Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than Lexical. Issues without reproduction steps or code examples may be closed as not actionable. --> Link to code example: [playground](https://playground.lexical.dev/#doc=H4sIAAAAAAAAE52RwU7DMBBE_2XOVuUAIoo_gDNSjhUHEy-NxdaONpuKKMq_IweqUg5I9GTPrHfmSV5AIWqWVr0S3ALJWcvZ9ZGDUILb_xKB1EeGswZvWY5e4SqDYw4Eh1QchsGoMxcDBkofCoeeyn0eirtZBieSMeYEV61mOc84JnoV8u__f3ArGnP-i-3FIEShTjedJuZLfkmJKVDSrfY7Y_DiD-KH_iroq-_pQlZke6a5oWb7rCvU1YD9qK0_UYCr6rp6bOqqaez9ncGYJ-nK3jP7-SB5SuHnNuzuwe4s1k-gt5gIFQIAAA) ## The current behavior https://github.com/user-attachments/assets/4d7e1fee-1229-47f9-a53e-f1b6a67da29a ## The expected behavior If a user inserts linebreaks within a formatted range, those linebreaks should maintain the formatting. ## Impact of fix <!-- - How severe is this bug? How often does it happen? Is it causing an outage somewhere? - Who would benefit from this fix? Any specific users, groups or companies? - If possible include metrics. Approximately how many users would this fix benefit? -->