Skip to content

Emojis do not render correctly in <Markdown />Β #2335

@mathhulk

Description

@mathhulk

Describe the Bug

Due to an outdated marked@7 dependency that md-to-react-email relies on, emojis are not correctly rendered in React Email's <Markdown /> components. Unfortunately, the length of emojis and other unicode characters are not measured correctly and break markdown parsing.

I've submitted codeskills-dev/md-to-react-email#36 to fix this issue, but considering that md-to-react-email is a core dependency of the <Markdown /> component, seems to be maintained by React Email contributors, and hasn't been updated in many months, I might also suggest moving it here so it can receive some first-party love from the community.

Which package is affected (leave empty if unsure)

@react-email/components

Link to the code that reproduces this issue

n/a

To Reproduce

n/a

Expected Behavior

n/a

What's your node version? (if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions