typstyle-tampermonkey

Format code using typstyle in typst.app

Verze ze dne 10. 07. 2025. Zobrazit nejnovější verzi.

Autor
ParaN3xus
Hodnocení
0 0 0
Verze
0.0.2
Vytvořeno
10. 07. 2025
Aktualizováno
10. 07. 2025
Size
832,6 KB
Licence
MPL 2.0
Spustit na

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。