Skip to content

Commit f86104b

Browse files
committed
chore: update version to 0.13.9 and reflect changes in dependencies
1 parent 24a2f56 commit f86104b

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 `2 + 2`, typstyle will now correctly interpret this as 4 columns.
6+
7+
- Feature: typstyle now formats tables in most cases. This major enhancement provides better support for complex table structures, including tables with headers, footers, and various column configurations.
8+
9+
- 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.
10+
11+
- 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.
12+
13+
- Feature: typstyle now preserves spaces on both sides of content blocks in markup. This enhancement ensures that spacing around code blocks and other content elements is maintained properly.
14+
15+
- 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.
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 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.
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)