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

Markdown in email - value.includes in escapeQuotes #1632

Open
MartinN3 opened this issue Aug 27, 2024 · 0 comments
Open

Markdown in email - value.includes in escapeQuotes #1632

MartinN3 opened this issue Aug 27, 2024 · 0 comments
Labels
Type: Bug Confirmed bug

Comments

@MartinN3
Copy link

MartinN3 commented Aug 27, 2024

Describe the Bug

When using markdownCustomStyles, parseCssInJsToInlineCss calls escapeQuotes on fontWeight: 500, in h1 tag and that fails but when using fontWeight: '500' it goes trough.

Which package is affected (leave empty if unsure)

react-email

Link to the code that reproduces this issue

is there a default repo we can clone and tailor?

To Reproduce

<Markdown
        children={`# Welcome to`}
        markdownCustomStyles={{
          h1: {
            fontSize: 70,
            fontWeight: 500,
          },
        }}
      />
"dependencies": {
        "@react-email/components": "0.0.23",
        "@react-email/render": "^1.0.0",
        "express": "4.19.2",
        "react": "18.3.1",
        "react-dom": "18.3.1",
        "react-email": "^3.0.1",
        "typescript": "^5.5.4"
 },

Expected Behavior

I think you would wanna override h1 fontWeight and you would do it easily by specifying fontWeight: 500, right?

What's your node version? (if relevant)

No response

@MartinN3 MartinN3 added the Type: Bug Confirmed bug label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Confirmed bug
Projects
None yet
Development

No branches or pull requests

1 participant