-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
matrix-org/matrix-react-sdk
#8242Closed
Copy link
Labels
A-ComposerO-OccasionalAffects or can be seen by some users regularly or most users rarelyAffects or can be seen by some users regularly or most users rarelyT-Enhancement
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
HarHarLinks and SimonBrandner
Metadata
Metadata
Assignees
Labels
A-ComposerO-OccasionalAffects or can be seen by some users regularly or most users rarelyAffects or can be seen by some users regularly or most users rarelyT-Enhancement

