Usage:
Usage: typst-geshihua [OPTIONS] <INPUT>
Arguments:
<INPUT> Path to the input file
Options:
-c, --column <COLUMN> The width of the output [default: 80]
-a, --ast Print the AST of the input file
-p, --pretty-doc Print the pretty document
-i, --inplace Format the file in place
-h, --help Print help
-V, --version Print version
If you find typst-geshihua is not working as expected, you can use // @geshihua off
or /* @geshihua off */
to disable the formatter on the next node of code.
And please let us know the issue by creating an issue on the GitHub repository
cargo test
cargo insta review
We have set up multiple tests:
- Convergence tests: format result must be the same when applied twice
- Snapshot tests: format result are stored in the
snapshots
directory and are compared to the current result
- comments and white lines get removed when in strange places