typstyle-tampermonkey

Format code using typstyle in typst.app

As of 2025-07-10. See the latest version.

Author
ParaN3xus
Ratings
0 0 0
Version
0.0.2
Created
2025-07-10
Updated
2025-07-10
Size
833 KB
License
MPL 2.0
Applies to

typstyle-tampermonkey

A userscript that adds typstyle formatter to typst.app.

Installation

  1. Install a userscript manager like Tampermonkey
  2. Click WIP to install the script
  3. Visit typst.app and start formatting!

Usage

  1. Open any project on typst.app
  2. Click the Typstyle button in the top menu bar to configure settings
  3. Use Ctrl + Alt + F(by default) in the editor to format your code

Build

  1. Build typstyle WASM module with build:wasm of typstyle-playground.

  2. Copy the built typstyle-wasm folder to this project and build

   bun i
   bun run build

License

This project is licensed under MPL 2.0.

Uses typstyle which is licensed under Apache 2.0.

长期地址
遇到问题?请前往 GitHub 提 Issues。