This project contains three parts :
- The
typst-math-rust
folder contains the Rust code for the WebAssembly module. It parses a text document to an AST and compute the math symbols to render. - The
typst-math-macros
folder contains helper macros for the Rust code. - The main folder contains the TypeScript code for the VS Code extension.
git clone https://github.com/supersurviveur/typst-math.git
cd typst-math
To build the WebAssembly module, you need to install wasm-pack
cd typst-math-rust
wasm-pack build
Then you can run the extension by opening the project in VS Code and pressing F5
to start a debug session.
You can run tests with cargo test
, and see test coverage by running coverage.sh
.
A few rendering modes are available :
nothing
: No renderingbasic
: Only greek letters and shorthands are renderedmedium
: Attachments are renderedcomplex
: Functions are rendered