Set up typst wasm plugin

This commit is contained in:
Joscha 2025-03-01 00:26:38 +01:00
parent 49d6a2c022
commit 179d0653bb
10 changed files with 76 additions and 1 deletions

View file

@ -5,5 +5,7 @@ pub use self::text::*;
mod text;
fn typst_with_lib() -> Typst {
Typst::new().with_file("/lib.typ", include_str!("documents/lib.typ"))
Typst::new()
.with_file("/lib.typ", include_str!("documents/lib.typ"))
.with_file("/plugin.wasm", include_bytes!("documents/plugin.wasm"))
}