Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[website] highlighting breaks the MathML render #643

Closed
xtuc opened this issue Jan 9, 2018 · 8 comments
Closed

[website] highlighting breaks the MathML render #643

xtuc opened this issue Jan 9, 2018 · 8 comments

Comments

@xtuc
Copy link
Contributor

xtuc commented Jan 9, 2018

When you do a search and have the highlighting turned on some MathML formulas don't render anymore.

Example:

I'm personally using the search often and need to edit the URL by hand to understand the formulas.

@rossberg
Copy link
Member

rossberg commented Jan 9, 2018

Interesting. That's unfortunate, but is there anything we can do about this? The underlying problem is that MathJax, which is the math rendering package used here, is a JavaScript-based kludge (as are its alternatives) and the web still hasn't grown a proper solution (like MathML).

@littledan
Copy link
Collaborator

One thing you could do is not apply MathJax in browsers that nave native MathML support (currently, Gecko and WebKit-based browsers). Igalia is working on MathML in Chromium, so this could end up being a practical solution soon.

@rossberg
Copy link
Member

rossberg commented Jan 9, 2018

Sounds good, but is serving different pages to different browsers even possible with GH pages?

Good to hear that Igalia is working on MathML, though!

@xtuc
Copy link
Contributor Author

xtuc commented Jan 9, 2018

Do you know if the highlighting is actually useful? You can use Ctrl+f instead (once you get on the page), that sounds like a good compromise to me.

@littledan
Copy link
Collaborator

@rossberg I was imagining a JS snippet would decide which to show on the client side. Not sure if this would be a ton of trouble to implement.

@rossberg
Copy link
Member

@littledan, with MathML the math isn't generated by JavaScript but is a static part of the document. You could probably set it up differently somehow, but I don't know of tools that support that.

@binji
Copy link
Member

binji commented Jan 24, 2019

I don't see any difference here. I assume because we've switched from MathJax to Katex? Can we close this?

Never mind, I see the issue now.

@rossberg
Copy link
Member

rossberg commented Aug 4, 2022

Closing as won't fix.

@rossberg rossberg closed this as completed Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants