Insert MD link from Browser
Shared by EvanLovely
Gets title & URL from in-app browser and inserts a Markdown link.
Script
const url=webBrowser.getURL();
let title=webBrowser.getTitle();
if (!title) title=url;
if (url) {
editor.replaceSelection(`[${title}](${url})`);
} else {
ui.hudError('Failed - no url');
}