I have a bunch of markdown documents with a mix of relative and absolute image destinations. e.g. I want to prepend a URL to each of the relative images, e.g. to change the above to but preferably without hard-coding /sub/folder/ into the replace script (which is how I currently do it). Is there a clever way to do this with