Skip to content

Conversation

IgKh
Copy link
Contributor

@IgKh IgKh commented May 21, 2025

A stab at fixing #2732.

Try to detect a math.equation show-set rule via the AST rather than by heuristics, and determine if a font is a math font based on the presence of a MATH table rather than the family name.

IgKh added 2 commits May 21, 2025 23:40
Try to detect a `math.equation` show-set rule via the AST rather than
by heuristics, and determine if a font is a math font based on the
presence of a MATH table rather than the family name.
@IgKh
Copy link
Contributor Author

IgKh commented May 26, 2025

Refactored the detection of show rules to be a bit more flexible (e.g when show rule body is more deeply nested, rather than just a show-set rule). It feels less... arbitrary like this.

@IgKh IgKh force-pushed the math-font-autocomplete branch from 1440979 to 58e6407 Compare May 26, 2025 19:41
@laurmaedje laurmaedje added this pull request to the merge queue May 28, 2025
@laurmaedje
Copy link
Member

Thank you, looks very clean!

Merged via the queue into typst:main with commit 6e0f48e May 28, 2025
7 checks passed
@IgKh IgKh deleted the math-font-autocomplete branch May 30, 2025 07:55
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