PgBiel / typst-oxifmt

Convenient Rust-like string formatting in Typst (previously "typst-strfmt")
Apache License 2.0
32 stars 0 forks source link

Add thousand separator options #12

Closed PgBiel closed 1 month ago

PgBiel commented 2 months ago

Closes #5

Also some UTF-8 padding bugs and some float edge cases (more in a future PR).

Options:

  1. fmt-thousands-separator: "_" => displays _ every fmt-thousands-count digits
    • Defaults to "" which disables it
  2. fmt-thousands-count: 2 => changes amount of digits per thousand (determines how often to place the separator)
    • Defaults to 3
    • Must be positive (please disable the separator, not the count)