Formatting text with links breaks in rich-text editor (RTE)
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=514245) </details> <!--IssueSummary end--> <!--- Please read this! Before opening a new issue, make sure to search for keywords in the issues filtered by the "regression" or "type::bug" label: - https://gitlab.com/gitlab-org/gitlab/issues?label_name%5B%5D=regression - https://gitlab.com/gitlab-org/gitlab/issues?label_name%5B%5D=type::bug and verify the issue you're about to submit isn't a duplicate. ---> ### Summary In the rich-text editor (RTE), when submitting content that has a link that has formatting (such as bold, italic, or strikethrough), the formatting breaks. ### Steps to reproduce 1. Open a text area with the rich-text editor (e.g. issue description or comment). 2. Enter text and a link (e.g. “Test [link](#)”). 3. Apply formatting to the whole content, such as bold, italic, or strikethrough. 4. Submit the form. ### What is the current _bug_ behavior? | Before submitting | After submitting | In plain-text editor | |-------------------|------------------|----------------------| | ![CleanShot 20250120180728@2x.png](/uploads/3b88778418ec71eb69884411c49291e7/CleanShot_20250120180728_2x.png){width=147 height=243} | ![CleanShot 20250120180740@2x.png](/uploads/749538680c707733401d332f90cc685c/CleanShot_20250120180740_2x.png){width=164 height=244} | ![CleanShot 20250120180736@2x.png](/uploads/e3054f3e5ba1a91cdf604d0ad5d913bf/CleanShot_20250120180736_2x.png){width=254 height=242} | ### What is the expected _correct_ behavior? The formatting should be applied correctly. ### Output of checks This bug happens on GitLab.com <!--If you don't have /label privileges, follow up with an issue comment of `@gitlab-bot label ~"type::bug"`-->
issue