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 |
|-------------------|------------------|----------------------|
| {width=147 height=243} | {width=164 height=244} | {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