0xpapercut / obsidian-wypst

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

Newline, export #8

Open yonatankremer opened 6 months ago

yonatankremer commented 6 months ago

Finally! After looking for latex/typst plugins for obsidian, I found something that WORKS. (now three) small issues:

  1. Rendered space between two lines is a bit to small.
  2. After exporting to pdf, it breaks with the error code "unexpected dollar sign".
  3. same as 1. but with spaces too.

Both 1,3 can be "fixed" by inserting an empty/space only string

yonatankremer commented 6 months ago

seems to only happen when there's text after the math block

0xpapercut commented 6 months ago

Hello, thanks for pointing out these issues! I'll look into it during the weekend.

yonatankremer commented 6 months ago

:) took a quick look at the code, seems like the obsidian plugin serves as a small extension to wypst, which seems like a whole ass thing to study

0xpapercut commented 6 months ago

I have no insight on why the export doesn't work and hadn't had the time to investigate this matter further :(. As for wypst, yes indeed it can be quite difficult to understand because it is messy (The only reason I understand what's going on is because I wrote the thing), but I plan to organise the code and provide some documentation soon. I just have to find the time. Next week I'll be totally off from school, so that's my opportunity.

yonatankremer commented 6 months ago

awesome, my workflow settled on not using the export too much, I just want the rendered space between lines to be 1.5-2 times it is now, so I could not add " " \ every line LOL

0xpapercut commented 5 months ago

Ok, I can possibly add an option to change that.