Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance CSS-inlining within as_raw_html() #1114

Merged
merged 13 commits into from
Nov 10, 2022
Merged

Conversation

rich-iannone
Copy link
Member

The as_raw_html() function is useful for generating an HTML string for email message bodies and for HTML embedding purposes (expressly with inline_css = TRUE). While the CSS-inlining has been adequate it is: (1) slow, and (2) underpowered and can't keep up with additions to the SCSS styles. This is solved by using an external package that uses the juice JS library. This solution is far more performant and correct. Given the degree to which inlining problems are being seen (this especially impacts HTML email sending with gt tables), it is necessary to improve this part of the package.

Fixes: #1093
Fixes: #915
Fixes: #858
Fixes: #837
Fixes: #540
Fixes: #455

@rich-iannone rich-iannone marked this pull request as ready for review November 10, 2022 19:48
@rich-iannone rich-iannone requested a review from cscheid November 10, 2022 19:59
Copy link
Member

@cscheid cscheid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rich-iannone rich-iannone merged commit a4e108c into master Nov 10, 2022
@rich-iannone rich-iannone deleted the css-inline-enhance branch November 10, 2022 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment