-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Optionally ignore style tags in HTML, accept additional argument for css to inline? #45
Comments
Hi @cheapsteak ! I didn't think about it, but having such a feature seems perfectly reasonable to me :) Correct me if I am wrong, but to support your use case, it might be:
As far as I see, the extra CSS should be in the form of qualified rules as a single string, e.g. If the things above make sense, then I can implement that :) And I will appreciate if you can provide some input, expected output samples so I can include them to the test suite :) Cheers |
yes that should work!
yup!
that's a "juice" parameter , i'll copy their description here :)
for emails, extra CSS passed in separately from the html that can't be inlined should probably be thrown away, which I guess is why mjml had disabled that :) |
those look awesome!!! please feel free to close this issue :) |
👋 Hi there :)
Have you considered allowing css to inline be passed as an additional parameter?
(This might be related to #10 , but not quite the same)
The use case I'm thinking of is to possibly replace juice in mjml (I'm not affiliated, just a lib user), where css specified in
<mj-style inline="inline">
is collected as a separate string that's currently passed into juice asextraCss
, and inlining of other css is disabled (which makes sense because sometimes you do want to tell clients that respect style sheets to do something different from outlook)https://github.com/mjmlio/mjml/blob/246df840f4d0fcd812e51ca55bd6bef6592cb0e6/packages/mjml-core/src/index.js#L317-L319
The text was updated successfully, but these errors were encountered: