Skip to content

Avoid casing math equations in Typst#56

Merged
alerque merged 1 commit into
masterfrom
no-formulae
Dec 20, 2025
Merged

Avoid casing math equations in Typst#56
alerque merged 1 commit into
masterfrom
no-formulae

Conversation

@alerque
Copy link
Copy Markdown
Owner

@alerque alerque commented Dec 17, 2025

Fixes #55

This seems to have the desired effect and seems to work by limiting the matches from decending into math contexts at all. I did not expect this to be so hard to achieve and would have expected some sort of where clause or selector to work in conjuction with the regex matcher to exclude math contexts. Also I would have expected a simpler show text: rules to work, but that has other recursion problems.

It would be really nice if somebody more familiar with Typst scripting could look this over and either afirm this is a sane approach or suggest something better.

@alerque alerque added bug Something isn't working help wanted Extra attention is needed typst labels Dec 17, 2025
@alerque alerque merged commit 32e7947 into master Dec 20, 2025
26 of 27 checks passed
@alerque alerque deleted the no-formulae branch December 20, 2025 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working help wanted Extra attention is needed typst

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typst: symbols in equations are casified

1 participant