Description
Your use case
What would you like to do?
When pasting a URL while having text selected the selection should turn into a MD link with the previously selected text being the title.
To illustrate, starting from:
and pasting https://matrix.org
should end up with:
Why would you like to do it?
This is a common idiom supported in at least some text composition apps (for instance, logseq) and saves time in having to write the MD link manually.
How would you like to achieve it?
Check if the pasted text is a URL. If so, perform the string replacement to construct a MD link.
Have you considered any alternatives?
No response
Additional context
No response