xyhp915 / logseq-fenced-code-plus

A Logseq plugin for missing types of fenced code 🚀
MIT License
108 stars 17 forks source link

feat: support typst #54

Open b-yp opened 4 weeks ago

b-yp commented 4 weeks ago

Hello, I just added support for typst in the plugin, and it seems to be working fine. However, I'm unsure if this PR can be merged, as it depends on too many files, and the files are not loaded using logseq.Experiments.loadScripts(). This is the only way I could do it; I can't find a better solution. If you have any other thoughts, please let me know.

https://github.com/user-attachments/assets/bce55714-3ad2-4572-b9a6-baa495d1b709

xyhp915 commented 3 weeks ago

Hi @b-yp Just simplified the typst package. Feel free to continue any works if you want :)

b-yp commented 3 weeks ago

Thank you @xyhp915 ! The code you optimized is fantastic; it eliminated a lot of JS file imports and switched to using npm imports. 👍