ChHecker / unify

Format numbers, units, and ranges in Typst correctly.
MIT License
23 stars 17 forks source link

Bug: can't have range of powers of ten without the awkward 1 #31

Closed iverks closed 5 months ago

iverks commented 5 months ago

This:

#import "@preview/unify:0.5.0": numrange
$numrange("e2", "e3")$

which i would expect to render as 10² - 10³ raises an error. Instead i have to use

#import "@preview/unify:0.5.0": numrange
$numrange("1e2", "1e3")$

which renders the a little awkward 1 10² - 1 10³

ChHecker commented 5 months ago

Nice catch! Just fixed it.