From 6c9cfa84a8c09662e6998105cca50facd87e4233 Mon Sep 17 00:00:00 2001 From: nmemmert <67961292+nmemmert@users.noreply.github.com> Date: Thu, 30 Jul 2026 11:40:38 -0400 Subject: [PATCH] Improve iframe document CSS: serif font, normalize bold - Switch to Georgia to better match Word's serif rendering - Explicit font-weight:normal on body/p so mammoth's wrapping doesn't bleed into paragraph text - Tighter heading/paragraph spacing Co-Authored-By: Claude Sonnet 4.6 --- server.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/server.js b/server.js index 592c716..9f2b190 100644 --- a/server.js +++ b/server.js @@ -1554,9 +1554,19 @@ app.post('/api/admin/upload-attachment', requirePin, async (req, res) => { const { value: bodyHtml } = await mammoth.convertToHtml({ buffer }); const htmlFilename = `${uuid}.html`; const page = ` - + ${bodyHtml}`; await writeFile(join(ATTACHMENTS_DIR, htmlFilename), page); htmlUrl = `/api/attachments/${htmlFilename}`;