Inconsistent spacing after ^2 in math
Author: navdeepranaCreated Sep 23, 2026Updated Sep 28, 2026
Labelsmathchange request
Description
Consider the following code (note the spaces after ^2)
$
|p|^2p + n^2p
$
$
|p|^2 p + n^2 p
$
It produces the following output, where the space is relevant after |p|^2 p but not after n^2p
If I remove the bars (|), the output is consistent for both the cases
Operating system
Linux
Typst version
- I am using the latest version of Typst
Source: typst/typst