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,