Images Not Showing in DTTG HTML Files

In DEVONthink for macOS, version 4.1.1, I can place an HTML file in a group, and in that file, reference an image that lives in a sub-group. The HTML file will render perfectly well, showing the image.

This was the same in DEVONthink for macOS version 3. I’m not sure how it’s done, because individual files in DEVONthink for macOS are stored in various Finder folders according to their types, as defined by their extensions, and the simple path defined in the HTML file is not the same as the actual Finder path between the HTML file and the image. But I guess DEVONthink implemented some trick to maintain the intended path. It works in macOS anyway.

It also used to work in DEVONthink To Go version 3.x, which was pleasing, but it doesn’t in the new DEVONthink To Go version 4.0.2. In DTTG version 4, the image appears as a generic image icon.

(Oddly, the preview icon for the file in DTTG (the blurred preview before it’s downloaded) does show the image, and it’s also discernible in the tiny preview of the HTML page in list view; but the image doesn’t render in the HTML file itself.

Why is this disparity apparent between the platforms’ implementations? Is it intentional?

Hmm.. I notice that as long as HTML files in DTTG stay the way they were when they were imported via sync, they render as expected (as per the HTML code, including paths to images), but the moment edits are made (using other iOS apps, having switched DEVONthink ‘on’ in the Files app) they are immediately converted to ‘formatted notes’, which I suppose explains all this.

I suppose there is no way of making them remain as editable HTML files?

No, HTML files are not editable in DEVONthink To Go. And what third-party apps are you using to edit them?

I see that now. I’ve been using apps like Runestone and Textastic, which work very well, in other apps too which don’t switch format afterwards. I thought I was missing something but I see that’s how DTTG4 has been designed.