As a bonus, is there a way to set the html file's name? Currently it's temp.html but I'd like it to be set to the Editorial document's name.
I assume I just need to replace "tmp.html" with a variable but I don't know what variable Editorial uses for the document name.