Skip to content

tim-tm/typ_plug_playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minplug

Really simple example of using C to write typst plugins using the wasm-minimal-protocol.

No emscripten required! Requirements:

  • clang
  • typst compiler

Testing

You can run the following commands to compile plug.c and plug.typ:

clang --target=wasm32 --no-standard-libraries -Wl,--export-all -Wl,--allow-undefined -Wl,--no-entry -o plug.wasm plug.c
typst compile plug.typ

You may also find the commands inside of build.sh.

About

Playground for testing Typst plugin capabilities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published