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

Wrong length of HTML entities in formatting #992

Open
jcubic opened this issue Dec 13, 2024 · 1 comment
Open

Wrong length of HTML entities in formatting #992

jcubic opened this issue Dec 13, 2024 · 1 comment
Labels
Bug resolved if issue is resolved, it will be open until merge with master

Comments

@jcubic
Copy link
Owner

jcubic commented Dec 13, 2024

Issue summary

When you output formatting with HTML entity, it calculates the size using the entity characters, not the output symbol

Expected behavior

The size of the formatting should be single character for one HTML entity

Steps to reproduce

See CodePen repro

Browser and OS

N/A

@jcubic jcubic added the Bug label Dec 13, 2024
jcubic added a commit that referenced this issue Dec 13, 2024
@jcubic
Copy link
Owner Author

jcubic commented Dec 13, 2024

The problem was regex that was used for rendering HTML entities, it didn't handle Hex digits.

@jcubic jcubic added the resolved if issue is resolved, it will be open until merge with master label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug resolved if issue is resolved, it will be open until merge with master
Projects
None yet
Development

No branches or pull requests

1 participant