github typstyle-rs/typstyle v0.15.3

46 minutes ago
  • Feature(CLI): Add --lines FIRST:LAST to format only the selected 1-based, inclusive line ranges. The complete document is printed with only the selected ranges reformatted, so the option can be used as jj fix's line-range-args.
  • Fix: Recognize enum markers with numbers up to u64::MAX on 32-bit targets, matching the Typst lexer, so text wrapping no longer breaks before them.
    (#506)
  • Fix: Keep a semicolon written right after #-prefixed code in math arguments attached to it. That semicolon ends the code, so $mat(#n;; #k)$ (one row separator) was formatted to $mat(#n ;; #k)$ (two), which added an empty row to the matrix.
  • Fix: With --wrap-text=sentence or --wrap-text=fill-sentence, keep a \ linebreak that ends a sentence at the end of that sentence's line instead of moving it to the start of the next line.
    (#524)
  • Fix: With text wrapping enabled, keep a heading, list item, enum item, or term item that has a comment written beside its marker on its own line. The comment hid the marker from the reflow check, so joining the line silently turned the block element into plain text.

Don't miss a new typstyle release

NewReleases is sending notifications on new releases.