Documenter.jl icon indicating copy to clipboard operation
Documenter.jl copied to clipboard

Some issues with latex math in Safari

Open raphaelsaavedra opened this issue 5 years ago • 7 comments

Apparently the change to KaTeX is causing some issues in certain browsers.

This is in Safari (see the tilde position):

Screen Shot 2019-11-29 at 08 25 23

This is the same snippet in Chrome:

Screen Shot 2019-11-29 at 08 25 41

Changing back to MathJax solves the issue.

raphaelsaavedra avatar Nov 29 '19 13:11 raphaelsaavedra

Is this reproducible separately from Documenter? It looks like an upstream issue.

mortenpi avatar Nov 29 '19 13:11 mortenpi

https://meta.mathoverflow.net/questions/3207/mathjax-accents-in-safari-10-1#3207 looks like the same thing.

KristofferC avatar Nov 29 '19 13:11 KristofferC

Oops that was for mathjax and not katex...

KristofferC avatar Nov 29 '19 13:11 KristofferC

Reading the thread you linked, it looks like a certain Safari version caused this issue and MathJax has fixed it, it is likely that KaTeX has not.

raphaelsaavedra avatar Nov 29 '19 13:11 raphaelsaavedra

What's the policy on leaving upstream issues open? There doesn't seem to be anything here for documenter to fix.

odow avatar Oct 21 '21 07:10 odow

Would be good to see if it is fixed upstream and in that case upgrade the dependency here in Documenter.

fredrikekre avatar Oct 21 '21 08:10 fredrikekre

If I recall correctly, this was the page I used as example, where the tildes were misplaced: https://lampspuc.github.io/ScoreDrivenModels.jl/latest/manual/#Links-1

I have opened it with Chrome and Safari and both look fine.

edit: Oh, reading the original issue again, I had changed to MathJax to fix it (here). So it would be good to test it with KaTeX.

raphaelsaavedra avatar Oct 21 '21 08:10 raphaelsaavedra