diff --git a/CHANGELOG.md b/CHANGELOG.md index 623c388..a84dc61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,11 @@ +0.10.0 (?) +------------------ + +- require css-inline 0.11.x for performance improvements +- drop css-inline Python 3.6 support + + 0.9.1 (2023-09-23) ------------------ diff --git a/mjml/mjml2html.py b/mjml/mjml2html.py index 11d0ad8..029e808 100644 --- a/mjml/mjml2html.py +++ b/mjml/mjml2html.py @@ -230,7 +230,12 @@ def _head_data_add(attr, *params): raise ImportError('CSS inlining is an optional feature. Run `pip install -e ".[css_inlining]"` to install the required dependencies.') # noqa: E501 extra_css = ''.join(globalDatas.inlineStyle) - inliner = css_inline.CSSInliner(inline_style_tags=False, extra_css=extra_css) + inliner = css_inline.CSSInliner( + extra_css=extra_css, + inline_style_tags=False, + keep_link_tags=True, + keep_style_tags=True, + ) content = inliner.inline(content) content = mergeOutlookConditionnals(content) diff --git a/setup.cfg b/setup.cfg index 4021255..8492459 100644 --- a/setup.cfg +++ b/setup.cfg @@ -59,9 +59,7 @@ testing = lxml PythonicTestcase css_inlining = - css_inline < 0.10 # < 0.10: CSSInliner(inline_style_tags=...) - - #css_inline >= 0.10.0 # >= 0.10.0: CSSInliner(inline_style_tags=...) + css_inline >= 0.11, < 0.12 # >= 0.11, < 0.12: CSSInliner(inline_style_tags=..., keep_link_tags=..., keep_style_tags=...) [options.entry_points]