Skip to content

Revert math precedence change - #7084

Merged
laurmaedje merged 1 commit into
mainfrom
math-revert
Oct 10, 2025
Merged

laurmaedje merged 1 commit into
mainfrom
math-revert

Conversation

@laurmaedje

Copy link
Copy Markdown
Member

As many of you are probably aware, Typst 0.14 was supposed to fix the long-standing issue that $f_i(x) renders the (x) in the subscript. The relevant change was made in #6442 after lengthy considerations and discussion spread across Discord and the Forum.

However, a new case that hasn't previously been considered and whose behavior has regressed with #6442 has now come to light in discussions on Discord (specifically the parsing precedence in $ 1 / f_a(x) $).

There is a potential fix for this issue in #7072. However, that PR only revealed deeper issues with the design and we're not confident that it is the best we can do for Typst.

As we don't want to put the burden on users to migrate their documents twice, we have thus decided to revert and postpone the change. That said, we are still committed to fixing the rendering of $f_i(x)$.

In particular, we are planning to prioritize a more holistical reconsideration of all edge cases and issues of the current math syntax, so that we can make one confident change rather than spread-out, disruptive fixes.

This reverts commit 7dc99e9.

@laurmaedje
laurmaedje added this pull request to the merge queue Oct 10, 2025
Merged via the queue into main with commit 5e96af7 Oct 10, 2025
@laurmaedje
laurmaedje deleted the math-revert branch October 10, 2025 06:55
Dikluwe pushed a commit to Dikluwe/typst-crystalline that referenced this pull request Sep 12, 2026
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.

1 participant