Thin spacing before `math.{dif,Dif}` is emitted as explicit `mspace`
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 56.1k
- Forks
- 1.7k
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 22
Description
Description
In MathML export math.dif and math.Dif end up with their weak THIN spacing before as an explicit mspace, as opposed to being absorbed into its lspace attribute. Fixing this might require promoting math.{dif,Dif} to elements, but this needs a well thought public API. This is also closely related to giving users finer grained access to modify spacing in math.
Operating system
No response
Typst version
- I am using the latest version of Typst
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the MathML export path for math.dif and math.Dif and inspect how their weak THIN spacing is represented. Review the public API implications of promoting these constructs to elements and the related spacing customization. Done means the spacing is absorbed into the lspace attribute rather than emitted as an explicit mspace, with a considered API design.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100