suchnsuch / Tangent

The publicly-available modules of the Tangent project.
141 stars 8 forks source link

Limited math rendering on Windows 10 #77

Closed cosimini closed 5 months ago

cosimini commented 5 months ago

Inline rendering of mathematics seems to be limited, at least on Windows 10 where I'm using the application.

In the image attached a comparison between Obsidian and Tangent rendering the same file. As you can see, elements as the sum and integration symbols or parenthesis bigger than one line are not scaled properly.

The two are using two different rendering libraries, MathJaX and KaTeX, but I'm unsure this might be the reason of the difference. Tested only on Windows 10, I'm unable ATM to test other platforms, version 0.7.6.

Math_rendering_test

taylorhadden commented 5 months ago

Interesting! Given that the layout of individual elements appear to be roughly in the same place, this may be a configuration error on Tangent's part.

Can you provide the source code for this? Seems like a great test case.

cosimini commented 5 months ago

That might be the case, before opening the issue I tried to render the same formulas on the KaTeX website and the outcome is identical to the left side of the image.

Math rendering test.md

taylorhadden commented 5 months ago

Can confirm, the fonts aren't loading correctly. Time to wrestle with the css…

taylorhadden commented 5 months ago

I have a fix for this. Will be coming in v0.8.0-alpha.2

taylorhadden commented 5 months ago

Fixed in v0.8.0-alpha.2