#5780·typst

Fractional units are broken in math

Author: MDLC01Created Jan 29, 2025Updated Sep 26, 2026
Labelsbugmath

Description

Consider the following piece of code:

typ
$ x #h(1fr) y $

#h(1fr) renders with a null width:

xy

This also does not work in inline math.

Reproduction URL

No response

Operating system

No response

Typst version

  • I am using the latest version of Typst