Question for special pasting of links

In referance to [Feature Request] Automatically convert URLs to link · Issue #1718 · laurent22/joplin · GitHub i was wondering if someone could help me out with where to look in the codebase regarding copy-pasting text (as i'm new to this project and the giant codebase is kinda overwhelming),

Basically what i want is to implement is a special pasting for links that causes it to be pasted in the for
[ ]*( (ignore the * in the middle that is just so that i can show what i mean)and the cursor gets focussed inside the hyphen and maybe implement a scraper for the links at a later stage that the issue i have referenced addresses.