fenjalien / obsidian-typst

Renders typst code blocks in Obsidian into images using Typst through the power of WASM!
Apache License 2.0
357 stars 16 forks source link

Error loading wasm file in Typst package #45

Open wangmeng1995 opened 7 months ago

wangmeng1995 commented 7 months ago

Thanks to your great work we can use Typst in Obsidian.

But It seems that this plugin will fail to load WebAssembly module.

I input this in code block:

image

But it can't render correctly.

image

Hopefully this can be fixed to use more Typst packages in Obsidian.

Thank you!

Schabolon commented 6 months ago

For me the same error occured, when trying to use #import "@preview/diagraph:0.2.3". But other packages such as cetz or quill are working fine.

fenjalien commented 6 months ago

That would be because cetz and quill don't use wasm plugins, but diagraph does.

This is a pretty big issue but I don't have the time right now to debug and fix this properly.