From 34940534219887d2f9b5d71ea9d190b8bff0adf4 Mon Sep 17 00:00:00 2001 From: ZDDC Date: Sun, 3 May 2026 16:48:19 -0500 Subject: [PATCH] fix(preview): render HTML files instead of showing literal source MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit HTML files in the file previewer (archive, transmittal, classifier popups) were dispatched to the text renderer because 'html'/'htm' are in shared/preview-lib.js's TEXT_EXTENSIONS (which is shared with the syntax-highlighting code path). Result: opening an .html file in preview showed its source as a
 block, not the rendered page.

Fix in each tool's popup builder + dispatcher:

  - Add 'html' / 'htm' to the iframe branch (alongside pdf), so the
    popup ships an ' : '
Loading preview...
'} + ${(ext === 'pdf' || ext === 'html' || ext === 'htm') + ? '' + : '
Loading preview...
'}