Skip to content

Commit 9472f5e

Browse files
committed
chore: update version to 0.13.9
1 parent 24a2f56 commit 9472f5e

File tree

3 files changed

+25
-7
lines changed

3 files changed

+25
-7
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Changelog
22

3+
## v0.13.9 - [2025-05-25]
4+
5+
- Feature: typstyle now evaluates simple constant expressions for table columns. This enhancement allows for better column count calculation in tables. For example, if you have a table with a column count defined as `((1fr,) * 2 + 2 * (auto,)) * 3`, typstyle will now correctly interpret this as 12 columns.
6+
7+
- Feature: typstyle now uses soft wrapping for import items. Import statements with long lists of items will now wrap more compact. This aligns with rustfmt's approach to formatting long import lists.
8+
9+
- Feature: typstyle no longer collapses consecutive spaces in markup by default. This change preserves intentional spacing in markup content, maintaining the author's formatting intentions.
10+
11+
- Feature: typstyle no longer adds padding to the last cell in math alignments. For example, in `cases()` expressions, the formatter will no longer add trailing spaces after the last cell, keeping comments properly aligned without unnecessary padding.
12+
13+
- Enhancement: typstyle now formats tables in most cases, and format headers and footers as tables. This major enhancement provides better support for complex table structures.
14+
15+
- Enhancement: improved detection of table and grid elements. Special rows (`header`, `footer`) and cells (`cell`, `hline`, `vline`) are now recognized without needing the `grid.` or `table.` prefix.
16+
17+
- Bug fix: typstyle now preserves backslashes in single-row aligned math equations. This addresses a missed case from #294 where expressions like `math.equation($ 1 & 2 \ $.body + $ & 4 \ $.body)` would incorrectly have their backslashes removed.
18+
19+
- Bug fix: typstyle now handles escape hatch comments (`@typstyle off`) better in corner cases. Previously, escape hatch did not work for `ArrayItem`, `DictItem`, `Param`, and `DestructuringItem`. Additionally, `@typstyle off` no longer penetrates comments, and when it appears before `Code` or `Math`, it now only applies to the first non-trivial child instead of the whole syntax node.
20+
321
## v0.13.8 - [2025-05-21]
422

523
- Bug fix: typstyle previously will break inline equations if they has alignments. Now it is fixed. It will never add paddings to align inline equations now.

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ members = ["crates/*", "tests"]
44
default-members = ["crates/typstyle"]
55

66
[workspace.package]
7-
version = "0.13.8"
7+
version = "0.13.9"
88
rust-version = "1.83"
99
edition = "2021"
1010
authors = ["Wenzhuo Liu"]
@@ -14,8 +14,8 @@ repository = "https://github.com/Enter-tainer/typstyle"
1414
homepage = "https://enter-tainer.github.io/typstyle/"
1515

1616
[workspace.dependencies]
17-
typstyle-core = { path = "crates/typstyle-core", version = "0.13.8" }
18-
typstyle = { path = "crates/typstyle", version = "0.13.8" }
17+
typstyle-core = { path = "crates/typstyle-core", version = "0.13.9" }
18+
typstyle = { path = "crates/typstyle", version = "0.13.9" }
1919
typstyle-consistency = { path = "crates/typstyle-consistency" }
2020

2121
# Used in core

0 commit comments

Comments
 (0)