Copy selected link(s) from browser as markdown?

FWIW here is a simple interim macro:

Copy slngle selected link as Markdown (Chrome or Safari)

Copy single link as Markdown.kmmacros (24.0 KB)

It executes this in the foreground browser (Chrome or Safari):

(function (oNode) {

	var oLink = document.evaluate(
		"./ancestor-or-self::a",
		oNode,
		null, 0, 0
	).iterateNext();

	return oLink ? 
		"[" + oLink.text + "](" + oLink.href + ")" :
		"";

})(window.getSelection().anchorNode);