You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon reviewing the font-family output in the elements, a similar issue is observed in <body>: quotes in the font-family value are replaced with encoded symbols ", which may lead to incorrect font rendering in some email clients.
which may lead to incorrect font rendering in some email clients.
Did you notice any specific case where this happens? I do know it happens in other cases, like with url("...") but I don't think it happens with font-family.
The hard thing with this is that this behavior is inherited from React itself, not even the renderer, so it might not be quite avoidable unless they add some way to opt out of this sort of behavior. But still, most generally this shouldn't be an issue as that is still valid HTML.
Describe the Bug
Upon reviewing the font-family output in the elements, a similar issue is observed in
<body>
: quotes in the font-family value are replaced with encoded symbols"
, which may lead to incorrect font rendering in some email clients.Your Templates:
Example of current result:
Which package is affected (leave empty if unsure)
react-email
Link to the code that reproduces this issue
https://demo.react.email/preview/magic-links/raycast-magic-link?view=source&lang=markup
To Reproduce
Create an email component using react-email.
In the element's style, specify a font-family that includes quotes in the font name. For example:
Export or render the email.
Open the generated HTML code and examine the style attribute of the element:
Expected Behavior
What's your node version? (if relevant)
No response
The text was updated successfully, but these errors were encountered: