0xpapercut / wypst

Typst math typesetting for the web.
https://0xpapercut.github.io/wypst/
MIT License
54 stars 2 forks source link

Accents support #6

Open lvignoli opened 4 months ago

lvignoli commented 4 months ago

The accent function and accent calls like macron(A) or tilde(A) are not supported. This is true both in Obsidian and on https://0xpapercut.github.io/wypst/.

Error:

RuntimeError: Unreachable code should not be executed (evaluating 'wasm.parseTree(retptr, ptr0, len0)')
0xpapercut commented 4 months ago

When I initially wrote the code, I considered that most users would not take advantage of these special symbols so it gives this error when you try to use it. The code of interest is found in https://github.com/0xpapercut/wypst/blob/dc83b2cf42e085a24bbf52438f00832034c5c961/src/core/src/converter.rs#L508C5-L511C6. Since there is interest I'm putting this on my list.

Are you using these symbols in math mode or text mode?

lvignoli commented 4 months ago

Thanks a lot for considering this. In my experience, accents are very frequent in math content. The same goes with primes, as I can see that there are not implemented as well.

Are you using these symbols in math mode or text mode?

You mean in display ($$…$$) or inline ($…$) math mode? I use them in both.