Here, by the way, is an example of mathematical proofreading via AI in this development version in action:
The user can optionally highlight a specific mathematical expression in the markdown editor and request that it be proofread. It might be nice to have that as an option in the new math editor.
@sam It turns out that KaTeX isn’t working quite right in the new plugin. If you take a look at it, it’s quite clearly a missing font problem and, indeed, the console indicates that there a bunch of font (Woff-v2) files that are not found.
Thus, the browser is looking in a ‘fonts’ folder adjacent to the topic URL, which is clearly wrong.
I suppose this all has something to do with the loadKaTeX function defined in the katex-bundle, which I guess loads KaTeX in a non-standard way leading to KaTeX not really knowing where the CSS file lives. I don’t know how to fix it, though.
I just pushed a fix for Katex, let me know if it works, I need to run it by @david to confirm it is safe, our pattern for loading CSS is not compatible with relative links inside the CSS file cause we are embedding a stylesheet
Note, I moved this to a new dedicate topic, cause it was getting a bit lost and noisy on the main math topic. Really looking forward to this upgrade, I feel we are very close.
If anyone is just itching to try out this new version or if (like me) they can’t wait since they’ve got classes that will use it starting in a few days, then you can install this standalone version here:
I based it off of this commit, I believe, changed it to draw MathJax from a CDN, rather than internally.