Dear folks,
I’m preparing a sprawling wiki for 100% offline use (for locked-down laptops with no internet).
I had pretty much completed a conversion from mostly-dropbox-hosted files to a set of relative links — with all the supporting files in the same folder as the wiki itself.
Alas, I’ve just learned I need to have only the html document at the root level, with all images and other resources tucked within a subfolder.
Does anyone have any tips about whether/how external links (jpg, png, webp, pdf) might be efficiently converted so as to add the /images/
directory at the beginning of each?
Alas, this time around there’s no single string to search for. Perhaps there’s a regexp solution… but it’s not simple, since these references can be in a number of fields, and may or may not appear in [img[alias|
framing and such.
Any hints toward a not-terribly-tedious approach would be welcome!