Skip to content

Commit

Permalink
refactor(routes/rtf/html): remove embedding of html images (#1288)
Browse files Browse the repository at this point in the history
Removed by
  • Loading branch information
Fdawgs authored Mar 1, 2023
1 parent 416abdd commit da7b329
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/routes/rtf/html/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit da7b329

Please sign in to comment.