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

Replace unicode currency symbols in inline math #1526

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

ekzyis
Copy link
Member

@ekzyis ekzyis commented Oct 28, 2024

Description

fix #1525

I am not sure if \p{Sc} catches every unicode character that would throw in math mode. I've decided to only match currency symbols via \p{Sc} since for example, it doesn't throw for this Tagalog unicode character ᜀ.

Maybe it's indeed just currency symbols for some reason? It also breaks on this one: ₠.

Checklist

Are your changes backwards compatible? Please answer below:

yes

On a scale of 1-10 how well and how have you QA'd this change and any features it might affect? Please answer below:

7. Pretty sure this only replaces currency symbols in inline math and has no unintended consequences.

For frontend changes: Tested on mobile? Please answer below:

n/a

Did you introduce any new environment variables? If so, call them out explicitly here:

no

@ekzyis ekzyis added the bug label Oct 28, 2024
@ekzyis ekzyis force-pushed the 1525-fix-mathjax-unicode-typerror branch from 7319530 to b50bb2f Compare October 28, 2024 19:00
@huumn huumn merged commit 7a94288 into master Oct 28, 2024
6 checks passed
@huumn huumn deleted the 1525-fix-mathjax-unicode-typerror branch October 28, 2024 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError: Cannot read properties of null (reading '4')
2 participants