Skip to content

Enter-tainer/typstyle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typst-geshihua

codecov

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

Escape Route

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

Test

cargo test
cargo insta review

We have set up multiple tests:

  1. Convergence tests: format result must be the same when applied twice
  2. Snapshot tests: format result are stored in the snapshots directory and are compared to the current result

Known issues

  • comments and white lines get removed when in strange places