Skip to content

Commit

Permalink
fix: ensure styleToAttribute is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Oct 20, 2022
1 parent af9b6dc commit ea2ea39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/transformers/inlineCss.js
Expand Up @@ -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())
Expand Down

0 comments on commit ea2ea39

Please sign in to comment.