Hi,
I recently switched from Logseq to SilverBullet because of Logseq's unstable state. I also use Typst a lot and really like how simple it makes writing equations. I used logseq-wypst before and found there was no Typst plugin in this community yet, so I made one with an LLM.
It is a fork of MrMugame's Silverbullet Math that adds Typst through wypst.
How it works
Keep writing $ ... $ and $$ ... $$. Formulas with a LaTeX command like \pi go to KaTeX, everything else is rendered as Typst. Same rule as logseq-wypst.
Typst: $sum_(n >= 1) 1/n^2 = pi^2/6$
LaTeX: $\sum_{n \geq 1} \frac{1}{n^2} = \frac{\pi^2}{6}$
Install
- Remove Silverbullet Math in the Library Manager if you have it. Both use
$. - Run
Library: Installwith:
silverbullet-Wypst/Wypst.md at main · junlangw/silverbullet-Wypst · GitHub
Limitations
- I have no prior JavaScript experience, so there may be bugs or security issues. Use at your own risk.
- wypst only supports Typst 0.10 math and is no longer maintained.
- LaTeX without a command, like
$x^{10}$, is treated as Typst. (Same behavior as logseq-wypst) wypst.wasmis 12.7 MB. Each device syncs it once.
Tested on SilverBullet 2.11.0.
Thanks to MrMugame, 0xpapercut and luh-05 for the work this builds on.
