typstfmt
typstfmt copied to clipboard
I suggest adding a configuration option for enforcing hard tab usage instead of 1d4 spaces. Maybe also respect `.editorconfig` for that?
- [x] I have tested with the master version of typstfmt and not just typst-lsp **Describe the bug** `%` in zsh's output means that the end of output is at...
[x] I have tested with the master version of typstfmt and not just typst-lsp When using trailing multi-line content blocks with comments right after the `[`, the output becomes very...
Hi, As promised on Discord, here's the issue regarding the `max_line_length`. When configuring the `max_line_length` parameter to 80 characters in the configuration file, the formatter still produces lines that exceed...
Hello, When running `typstfmt` on this snippet: ``` #focus-slide[ #fit-to-height(3em)[Introduction] #pdfpc.speaker-note(``` Let's start the introduction with a quote from Foo Bar ```) ] ``` the resulting output is: ``` #focus-slide[...
This is a sub-issue from #82 (see examples there). In https://github.com/astrale-sharp/typstfmt/commit/a9e6249019111783380be88390e86af3441076ab line length can exceed the configured line limit. Specifically, if the text (`content` block) is used, then it can...
Hi, if I do something like ```typst if row in (0, 1) { myred } else if calc.odd(row) { myblue } else { none }, ``` tysptfmt makes something like...
I added `pre-commit` to my package list, and `pre-commit install && pre-commit autoupdate` to my nix-shell shellHook. I created a default config (typstfmt --make-default-config), then echoed into the pre-commit config...
``` #figure( image("glacier.jpg", width: 70%), caption: [ _Glaciers_ form an important part of the earth's climate system. ], ) ```
I would prefer if `typstfmt` wouldn't format **at least** this simple code: ```typ #align(center)[ something ] ``` to this: ```typ #align( center, )[ something ] ``` It's just not efficient...