CMD+K link pasting doesn't work as intended

Release notes

Problem to solve

Whenever I highlight the text in an issue that I want to add a link to and click CMD+K, it adds the link text to the wrong place. Link text should be in the square brackets, and the cursor should be in the parenthesis so I can paste the link URL there. I'm forced to redo the whole syntax. Using Firefox. Same problem happens when I edit MD files in a single file editor.

image__61_

Proposal

Intended users

Feature Usage Metrics

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.

Edited by 🤖 GitLab Bot 🤖