From ea2ea39b8a6f4919fabdf298238c04485703e6f9 Mon Sep 17 00:00:00 2001 From: Cosmin Popovici Date: Thu, 20 Oct 2022 14:03:42 +0300 Subject: [PATCH] fix: ensure styleToAttribute is enabled --- src/transformers/inlineCss.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/transformers/inlineCss.js b/src/transformers/inlineCss.js index 00d9ea65..db9157e5 100644 --- a/src/transformers/inlineCss.js +++ b/src/transformers/inlineCss.js @@ -13,6 +13,7 @@ module.exports = async (html, config = {}, direct = false) => { const css = get(config, 'customCSS', false) if (get(config, 'inlineCSS') === true || !isEmpty(options)) { + options.applyAttributesTableElements = true juice.styleToAttribute = get(options, 'styleToAttribute', {'vertical-align': 'valign'}) juice.widthElements = get(options, 'applyWidthAttributes', []).map(i => i.toUpperCase())