typstyle-tampermonkey
July 11, 2025 ยท View on GitHub
A userscript that adds typstyle formatter to typst.app.
Installation
- Install a userscript manager like Tampermonkey
- Go to Greasy Fork to install the script
- Visit typst.app and start formatting!
Usage
- 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
-
Build typstyle WASM module with
build:wasmof typstyle-playground. -
Copy the built
typstyle-wasmfolder to this project and buildpnpm i pnpm build
License
This project is licensed under MPL 2.0.
Uses typstyle which is licensed under Apache 2.0.