- security fix: escaped HTML entities like
>
were unescaped in the final mjml output, leading to potential injection of untrusted user data (reported by @sh-at-cs)
- fix CSS child selectors
- disable loading remote stylesheets when inlining CSS
- require css-inline 0.11.x for performance improvements
- drop css-inline Python 3.6 support
- fix exception when processing an
mj-section
withbackground-size
(reported by Thomas Handorf)
- require css_inline < 0.10 due to an incompatible API change
- move project out of "alpha" state, it is at least "beta" by now
- add mjml-accordion, mjml-accordion-element, mjml-accordion-text, mjml-accordion-title, mjml-carousel, mjml-head-breakpoint, mjml-hero, mjml-navbar, mjml-navbar-link, mjml-social, mjml-spacer, and mjml-wrapper components (Casey Holzer)
- add support for custom components (Casey Holzer)
- add support for full-width attribute to mj-section (Casey Holzer)
- renamed project to "mjml-python", dropping the "-stub" suffix
- parse MJML using BeautifulSoup4 which fixes several issues with HTML inside
mj-text
(e.g. HTML entities, missing white space) (Casey Holzer) - prevent exception when trying to set padding for
<mj-column>
(reported by Peter Coles) - fix setting
width
attribute formj-button
(spotted by Michael Romanenko) - support css inlining (via
inlineStyle
) if "css_inline" is installed (Casey Holzer)
New Contributors:
- fix incomplete implementation of
background
attributes for<mj-section>
- check HTML output against mjml 4.12.0: test suite was updated with outputs from mjml 4.12.0 and required fixes where ported.
- fix non-ascii content in included files on Windows
- mj-button: prevent target="_blank" for mailto links (Thunderbird)
- fix
<mj-include>
- update test suite to check against html generated by mjml 4.9.0 and port required fixes to get the test suite passing.
- fix
<mj-image>
withhref
attribute
- support
<mj-include>
for body components - mjml_to_html(): also accept plain strings as input
- add support for json-like dict as input
- avoid deprecation warnings about invalid escape sequences in regex patterns
- add support for mj-font, mj-preview and mj-raw
- better error message for unknown tags
- handle
<mj-head>
section containing HTML comments - also render attributes with empty values if set explicitely
- implement (basic) support for mj-class
- port "Component.allowedAttributes" from JS mjml
- ability to render "welcome-email.mjml" from "mjmlio/email-templates"
- stop shipping tests in wheel
- move all requirements to setup.cfg
- mjml: always return "binary" data (UTF-8) to avoid encoding problems in Windows
- mjml script: use setuptools-based wrapper so Windows users can run it more easily