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

Support for 5-digit Unicode code points #5347

Open
chris-braidwell opened this issue Mar 1, 2024 · 1 comment
Open

Support for 5-digit Unicode code points #5347

chris-braidwell opened this issue Mar 1, 2024 · 1 comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@chris-braidwell
Copy link

chris-braidwell commented Mar 1, 2024

Description

When I label an object with a 4-digit unicode value: like entry[#9829;], the resulting label is , great.

When I try to use a 5-digit unicode value like entry[#1FBC5;], the resulting label is #1FBC5;.

When I try to represent that code point as a surrogate pair like entry[#D83E;#DFC5;], the label is #D83E;#DFC5;.

Is there a way to represent code points with >4 digits?

Steps to reproduce

See examples above

Screenshots

No response

Code Sample

No response

Setup

  • Mermaid version: 10.8.0 (via mermaid.live)
  • Browser and Version: Chrome 124.0.6327.1

Suggested Solutions

No response

Additional Context

No response

@chris-braidwell chris-braidwell added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Mar 1, 2024
@Yash-Singh1
Copy link
Member

Yash-Singh1 commented Mar 25, 2024

When I try to use a 5-digit unicode value like entry[#1FBC5;], the resulting label is #1FBC5;.

Mermaid.js doesn't support hexadecimal HTML entities, but you can use the decimal equivalent as #129989;

https://mermaid.live/edit#pako:eNoNyrEOgjAQBuBXIb8ri062rLyBo-dwaQ8h0tac1xBCeHe7fcN3IJQo8JjWsoWZ1ShLNt2fl-vNubsbXuiRRBMvsbWDctcRbJYkBN8YWT8Eymd7XK089hzgTav0qN_IJuPCb-UEP_H6k_MPnsYmxQ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

2 participants