crcn/emailify

Pseudo states and media queries lost

Opened this issue · 3 comments

toovy commented

Hi crcn,

I've been looking for a node replacement for premailer. I've tried emailify, but the result is not working. I'm using ink from zurb to create responsive emails, but during the emailify process the responsive styles and also the pseudo styles are lost. I've compared the resulting HTML between emailify and http://zurb.com/ink/inliner.php and the result is, that the zurb inliner (I think this one is based on premailer) generates a style tag with the pseudo styles and the responsive styles with media queries.

I want a node-only automated build pipeline. At the moment I have to either have to switch to ruby/premailer or manually use the inliner at zurb. Both ways are not optimal.

Emailify could be a great solution if it would support this stuff.

Thanks, BR, toovy

toovy commented

node-premailer could be used, but relies on a webservice. That means you depend on your internet connection as well as on the availability on the web service. Same problem as with the ink inliner.

I can attest to this. The stripping of media queries is annoying. It would be nice if this would ignore styles in @media blocks and leave them in the <style> tag at the top.