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

Incorrect line breaks on multi-code point emoji #2

Closed
jeremysf opened this issue Feb 26, 2018 · 6 comments · Fixed by #16
Closed

Incorrect line breaks on multi-code point emoji #2

jeremysf opened this issue Feb 26, 2018 · 6 comments · Fixed by #16

Comments

@jeremysf
Copy link

First off, thank you for this great library! On the issue: for example, the 👨‍👩‍👧‍👦emoji, which is represented by a sequence the four emoji code points and zero width joiners result in breaks for each of the emoji code points.

@niklasvh
Copy link
Owner

Thanks for reporting this! I'll need to investigate this further

@be5invis
Copy link

There are regexes that could recognize Emoji:

@alexsorokoletov
Copy link

@niklasvh this issue also affects html2canvas - rendering multipoint emojis is broken

niklasvh added a commit that referenced this issue Aug 2, 2021
@niklasvh niklasvh mentioned this issue Aug 2, 2021
niklasvh added a commit that referenced this issue Aug 2, 2021
@niklasvh
Copy link
Owner

niklasvh commented Aug 2, 2021

Little late to the party, but this was fixed in #2 (see https://jsfiddle.net/w6romb5n/1/)

@alexsorokoletov
Copy link

Thank you!

@shuding
Copy link

shuding commented Feb 6, 2022

I don't think this is fully fixed, taking the 🏳️‍🌈 emoji as an example:

CleanShot 2022-02-06 at 21 43 48@2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants