obsidian-wypst icon indicating copy to clipboard operation
obsidian-wypst copied to clipboard

Primes break rendering.

Open AxiomOfChoices opened this issue 1 year ago • 4 comments

If you have a symbol like $delta$ it renders fine, but if you add a prime, i.e. $delta'$ it suddenly breaks rendering. image

AxiomOfChoices avatar May 20 '24 19:05 AxiomOfChoices

I was just about to submit an issue for this as well, so I can confirm this. Obsidian version: v1.5.12 Obsidian-wypst version: 0.0.3

This also occurs when calling math.primes directly, i.e.

#let x = 3; 
$A primes(#x)$

Results in "unknown variable: primes" instead of A'''

A workaround for the meantime is to write $A^prime$ or $A^(prime prime)$ instead

MATOO-Dev avatar May 21 '24 10:05 MATOO-Dev

Experiencing this as well. Would love native support of ' chars, maybe as escaped char, i.e., \'.

janmagnusdev avatar Aug 19 '24 09:08 janmagnusdev

Hello,

I am aware of this problem. I am currently occupied with other projects and an ongoing internship, so unfortunately I cannot work on this right now.

I've been postponing this for some time because the code basically needs to be rewritten, it's somewhat convoluted. Also, we should expect at least experimental release of native html math rendering in Typst by the end of the year, so even if this doesn't get fixed, we will get much better support for html rendering very soon I hope.

0xbolt avatar Aug 20 '24 23:08 0xbolt

Should be fixed in 0xpapercut/wypst#9.

eniraa avatar Oct 25 '24 08:10 eniraa