Repository navigation
Revert math precedence change - #7084
Merged
Merged
Conversation
This reverts commit 7dc99e9.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.