0xpapercut / obsidian-wypst

High quality rendering of Typst in Obsidian, powered by wypst.
MIT License
29 stars 2 forks source link
math-typesetting obsidian typst wypst

Wypst

High quality rendering of Typst in Obsidian, powered by wypst.

Usage

This plugin overrides regular math blocks ($<...>$ and $$<...>$$), so that they're rendered as Typst math.

Example

If this plugin doesn't render the LaTeX code in your vault correctly, you can try out the fallbackToLatexOnError experimental setting.

Compatibility

To maximize compatibility with LaTeX math blocks, the rendering backend switches to MathJax when certain structures like \begin{environment}<...>\end{environment} or \<some-symbol> are encoutered.

For example, $pi$ will be rendered using Typst, whereas $\pi$ will be rendered as regular LaTeX.

In general, expressions in Typst and LaTeX, if equivalent, should render to exactly the same output. If this is not the case, you can report it as an issue.

Issues

I welcome everyone who encounters a problem to open an issue on 0xpapercut/obsidian-wypst.