Skip to content

typstyle-rs/typstyle-tampermonkey

Repository files navigation

typstyle-tampermonkey

A userscript that adds typstyle formatter to typst.app.

Installation

  1. Install a userscript manager like Tampermonkey
  2. Go to Greasy Fork 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

    pnpm i
    pnpm build

License

This project is licensed under MPL 2.0.

Uses typstyle which is licensed under Apache 2.0.

About

Format code using typstyle in typst.app

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •