Does Drafts support URL objects? Trying a basic example from that site:
const url = new URL("../cats", "http://www.example.com/dogs");
alert(url.hostname); // "www.example.com"
alert(url.pathname); // "/cats"
Drafts gives the error Can't find variable: URL.
A URL can certainly be built otherwise, but just curious.