Html is treated as formatted note in DTTG 4 iOS

Yep, I’ve just stumbled on this one. I may have a simple workaround that suits me and may help others: convert your html files to webarchives. The webarchives behave the same way for me (for my use cases) and DTTG doesn’t change them into formatted notes.

My specific use case is…

I have some html files (created on Mac) with embedded js scripts for some advanced UI behaviours. (The js scripts are also stored / synced within DT / DTTG.)

The contents of the html is actually almost entirely a json object. The embedded js then does a whole bunch of rendering and interaction handling.

When the html is converted into a formatted note…

  1. I can no longer easily edit the json data within DT on Mac. (Formatted notes remove the source mode.) So I need to edit in an external editor. (Yes, I’m hardcore and edit my js without fancy IDE features! There is nothing like debugging js without a console or syntax highlighting or pesky AI bots that know everything!… ok, I admit I don’t do this too often)
  2. If I make any changes to the rendered html (e.g. an accidental key press), the rendered html becomes text in the formatted note and then I get double the output.

Additional note: I just checked and relative links to the embedded js files in the webarchives stay the same too. (I was worried they may get converted, brought into the webarchive or somehow otherwise altered.)

Additional additional note: you can still edit the source of the web archives within Mac DT.