typst / typst/typst

Thin spacing before `math.{dif,Dif}` is emitted as explicit `mspace`

Open
#8,106 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

change request html math
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.