Skip to content

Conversation

GWDx
Copy link

@GWDx GWDx commented Sep 27, 2025

Extend operatornamePattern to include 0-9, so operators like \operatorname{atan2} are parsed as a single identifier.

Fixes mathjax/MathJax#2991


The bug first appeared in commit 2cd7f7c, and was fixed in 7545df4, which was later reverted in c8834c6.

Extend operatornamePattern to include `0-9`, so operators like `\operatorname{atan2}` are parsed as a single identifier.

Fixes mathjax/MathJax#2991
@GWDx GWDx force-pushed the fix-operatorname-number branch from 4f41b3e to 3093f9f Compare September 27, 2025 14:19
@dpvc
Copy link
Member

dpvc commented Oct 17, 2025

Sorry to take so long to respond to this PR. There is actually a different issue at play as well, and I didn't want to merge this until I had straightened that out. That is done in PR #1367. That PR does take care of the display issue, but I think it is fine to include digits here anyway. So I'm merged this now.

@dpvc dpvc merged commit 859405e into mathjax:develop Oct 17, 2025
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 this pull request may close these issues.

2 participants