On Fri, 19 May 2017 07:23:11 GMT, Jacob Carlborg wrote:

To me it seems it would be fairly simple to make a few changes to diet-ng to have this working out of the box.

Yes, should be a matter of providing a slightly adjusted CTX as a template argument to the private getHTMLMixin.

There is #16 open to keep track of this.

Would be nice to choose some useful output format for this even for dynamic content. It could be something theoretically suitable for being converted back to Diet (even if not perfectly lossless).