fenjalien / obsidian-typst

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

Fails to render multiline Typst block in preview mode #13

Open OverHash opened 1 year ago

OverHash commented 1 year ago

Currently Typst Renderer will successfully render a multi-line Typst block:

# Simple Linear Model
$$
y &= a + b x\
&= B_0 + B_1 x + epsilon
$$
Some text below...

will render to: image

But changing to preview mode will cause the render to not pad correctly: image

fenjalien commented 1 year ago

I can't reproduce this, can you give more details of your environment?