← Package directory
Available on winget

Install typstyle

Beautiful and reliable typst code formatter

Install with winget
winget install --id Enter-tainer.typstyle
Upgrade
winget upgrade --id Enter-tainer.typstyle
Uninstall
winget uninstall --id Enter-tainer.typstyle

About typstyle

Beautiful and reliable typst code formatter

What's new in 0.14.4

- Fix git submodule ghost that prevents publishing.

Read release notes

Version history

Version Updated Notes
0.14.4 Unknown - Fix git submodule ghost that prevents publishing.
0.14.0 Unknown - Feature: Bump typst-syntax to v0.14.0.
0.13.18 Unknown - Bug fix: Previously, @typstyle off is not correctly recognized for {table,grid}.{header,footer}. Now it is fixed. - Revert: The body of strong/emph is no longer indented. Playground - Feature: Added some loadable sampl...
0.13.17 Unknown Core - Feature: Improved flavor detection for list-like syntaxes. Previously, flavor detection checked only whether the first space contained a line break, leading to unexpected multiline layout when child expressions co...
0.13.16 Unknown - Due to ci configuration issues, we failed to publish v0.13.15. This release is a re-publish of v0.13.15 with the correct version number. v0.13.15 - [2025-07-18] - Feature(CLI): Add --diff option to show unified diff of...
0.13.14 Unknown We now employ prettyless as the layout engine. It provides more features to support us to adopt better layout logic. - Feature: Long lines after the first line will no longer cause compact layout to fail to fit. For exam...
0.13.13 Unknown - Bug fix(CI): Fixed a CI misconfiguration that prevented the release of v0.13.12.
0.13.11 Unknown - Feature(CLI): (breaking) Removed deprecated format-all command from CLI. This command was previously deprecated and has now been completely removed. Users should use typstyle <dir> -i instead. - Feature(CLI): Added --t...
0.13.10 Unknown - Bug fix: Fixed unexpected semicolon to comma conversion in nested math arguments. Previously, typstyle would incorrectly convert semicolons to commas in complex nested mathematical expressions like $mat(mat(1; 2); mat(...
0.13.9 Unknown - 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 ((1f...
0.13.8 Unknown - 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. - Feature: typstyle doesn't enforce trailing backslash in math...
0.13.7 Unknown - Cli: typstyle now supports formatting dirs natively. You can use typstyle -i <dir> to format all files in the directory. Given that, typstyle format-all is deprecated and will be removed in the future. - Cli: typstyle...
0.13.6 Unknown - Bug fix: #272. Previously, typstyle will remove the space between variable and underscore in math equations. \(#mysum _(i=0)\) for example, will be formatted as \(#mysum_(i=0)\). Now it is fixed. - Enhancement: #273. W...
0.13.5 Unknown - Bug fix: Typstyle previously will panic if there is only a space in math function call. Now it is fixed. - Bug fix: Typstyle previously will not converge if there are multiple newlines in a function call. Now it is fix...
0.13.4 Unknown - Feature: typstyle cli now enables import sorting by default. You can disable it with --no-reorder-import-items flag. - Feature: typstyle now supports --wrap-text flag to wrap texts in the markup. It is considered as ex...
0.13.3 Unknown - Feature: Unified equation layout and removed indent for non-block equations - Non-block equations are no longer indented, which works well in most reasonable cases - Nodes with multiline comments are now treated as mul...
0.13.2 Unknown - Feature: Typstyle can format code in markup lines now. Linebreaks are suppressed inside to ensure compact layout. - Feature: Typstyle can format math equations with comments and hashes now. Previously they are skipped....
0.13.1 Unknown - Bump to typst v0.13.1 - Typstyle now uses braces () instead of parens (()) when the closure body is not a chainable binary expression #fun(() => { aaa }) instead of #fun(() => ( aaa )) - Fix mis-format when linebreak \...
0.13.0 Unknown - Bump to typst v0.13.0 - Regression: In typst v0.13.0, PR #5310 changes the parsing behavior of comments when it presenting in list, enum and term list. In this verison, the indent level of the comment in list, enum and...
0.12.15 Unknown - Feat: add --tab-width cli option to set the number of spaces for indentation. The default value is 2. - Fix: typstyle-cli now outputs the original source when the input syntax is erroneous. - Fix: issues with list/enum...