A userscript that adds typstyle formatter to typst.app.
- Install a userscript manager like Tampermonkey
- Go to Greasy Fork to install the script
- Visit typst.app and start formatting!
- Open any project on typst.app
- Click the Typstyle button in the top menu bar to configure settings
- Use
Ctrl + Alt + F
(by default) in the editor to format your code
-
Build typstyle WASM module with
build:wasm
of typstyle-playground. -
Copy the built
typstyle-wasm
folder to this project and buildpnpm i pnpm build
This project is licensed under MPL 2.0.
Uses typstyle which is licensed under Apache 2.0.