From da7b329c1fa42f7900229400e8bf60f7d0914471 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Wed, 1 Mar 2023 12:51:18 +0000 Subject: [PATCH] refactor(routes/rtf/html): remove embedding of html images (#1288) Removed by --- src/routes/rtf/html/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/routes/rtf/html/index.js b/src/routes/rtf/html/index.js index 48c07c4b6..175434ebc 100644 --- a/src/routes/rtf/html/index.js +++ b/src/routes/rtf/html/index.js @@ -69,13 +69,13 @@ async function route(server, options) { } }, handler: async (req) => { - const embeddedHtml = await server.embedHtmlImages( - req.conversionResults.body + const tidiedHtml = await server.tidyHtml( + req.conversionResults.body, + { + language: req.query.language, + removeAlt: req.query.removeAlt, + } ); - const tidiedHtml = await server.tidyHtml(embeddedHtml, { - language: req.query.language, - removeAlt: req.query.removeAlt, - }); return server.tidyCss(tidiedHtml, { fonts: req.query.fonts,