Skip to content

Commit

Permalink
refactor: styleToAttribute defaults
Browse files Browse the repository at this point in the history
do not duplicate css to attributes by default
  • Loading branch information
cossssmin committed Mar 19, 2023
1 parent 557e779 commit 6c36024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/inlineCss.js
Expand Up @@ -14,7 +14,7 @@ module.exports = async (html, config = {}, direct = false) => {

if (get(config, 'inlineCSS') === true || !isEmpty(options)) {
options.applyAttributesTableElements = true
juice.styleToAttribute = get(options, 'styleToAttribute', {'vertical-align': 'valign'})
juice.styleToAttribute = get(options, 'styleToAttribute', {})

juice.widthElements = get(options, 'applyWidthAttributes', []).map(i => i.toUpperCase())
juice.heightElements = get(options, 'applyHeightAttributes', []).map(i => i.toUpperCase())
Expand Down

0 comments on commit 6c36024

Please sign in to comment.