How is this supposed to work?
You would need a server-side implementation, which has already been done by @dmartinpro : it's very, very diffcult. It is a lot easier to just shorten the URL with Markdown