Why the document could not be shown.
The raw HTML mammoth produced, once the document is shown.
The HTML as mammoth produced it, before sanitizing: what a print window renders.
The document's bytes, when the caller already has them.
Where to fetch the document's bytes. Ignored when ArrayBuffer is set.
Renders a Word document (.docx) inline: fetches the bytes from
Url(or takes them fromArrayBuffer), converts them to HTML with mammoth and shows the sanitized result. Explorer's one Word renderer: the artifact viewer wraps it with its toolbar, and the Files form shows it in its preview pane.Loadedfires with the raw HTML once the document is shown;Failedfires with the reason when it cannot be.