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

math in solution knowl not rendering #1360

Closed
Alex-Jordan opened this issue May 10, 2021 · 16 comments
Closed

math in solution knowl not rendering #1360

Alex-Jordan opened this issue May 10, 2021 · 16 comments

Comments

@Alex-Jordan
Copy link
Contributor

We have two reports (one from a student and one from an instructor) that on their iPads with Safari, the math content in a solution knowl is not rendering. We are using the latest version of MathJax rendering that puts it inside script tags. I can't reproduce it, but I do not have an iPad. With Safari on a MacBookPro, I do not experience the issue.

My first guess is that MathJax is trying to render the math in the knowl before it has been fully loaded, but it's hard to say without hands on access. Could that be the explanation?

The instructor's details are:

Device: iPad Pro (Late 2018 model)
OS: 14.4.2
Safari: (Google says my iOS and Safari version are the same.  Otherwise, I'm not sure.)

Then they upgraded the OS a little, but still no math in the solution knowls.

Device: iPad Pro (Late 2018 model)
OS: 14.5.1
Safari: (Google says my iOS and Safari version are the same.  Otherwise, I'm not sure.)

@davidfarmer
Copy link

davidfarmer commented May 10, 2021 via email

@taniwallach
Copy link
Member

@Alex-Jordan - Can you make a sample problem available somewhere for people to test. (Guest login to a demo course?)

You could also see if using AnyDesk (https://anydesk.com) + developer tools in the iPad browser can be of help.

@davidfarmer
Copy link

davidfarmer commented May 10, 2021 via email

@Alex-Jordan
Copy link
Contributor Author

@davidfarmer This is not a PreTeXt issue, it's with webwork2 which has its own knowl mechanism and solutions.

@taniwallach The report is that this happens with any problem file. But I will set up something public and see if the instructor confirms seeing the issue there. And then post it here.

@davidfarmer
Copy link

davidfarmer commented May 10, 2021 via email

@drdrew42
Copy link
Member

drdrew42 commented May 10, 2021

knowl.js

updated to point at the 2.16 branch

@davidfarmer
Copy link

davidfarmer commented May 10, 2021 via email

@Alex-Jordan
Copy link
Contributor Author

Just to clarify, as far as I can tell, there is no issue with people using WeBWorK that is using MathJax3, when those people are using Firefox. Or even using Safari but using it on a laptop (as opposed to a tablet).

@davidfarmer
Copy link

davidfarmer commented May 10, 2021 via email

@drgrice1
Copy link
Member

@davidfarmer: The knowl.js javascript for WeBWorK 2.16 release candidate does not call MathJax.Hub.

@Alex-Jordan
Copy link
Contributor Author

I will have an example posted, but I have a class coming up that has my focus. I will be out at 4:00 PDT, and I hope to make the public example and ask my local colleague to check that it still fails for him, and then post it here.

@drdrew42
Copy link
Member

@drgrice1 you're right - I should have linked the 2.16 branch for knowl.js

@davidfarmer
Copy link

davidfarmer commented May 10, 2021 via email

@Alex-Jordan
Copy link
Contributor Author

Alex-Jordan commented May 10, 2021

I sent the following link to my colleague and asked him to see if the solution math still did not render using the iPad and Safari. I wanted to make sure that the issue was not localized to problems being rendered in the system template.

https://webwork.pcc.edu/webwork2/html2xml?&problemSeed=1&answersSubmitted=0&sourceFilePath=Contrib/PCC/BasicAlgebra/RadicalEquations/SolvingRadicalEquation70.pg&displayMode=MathJax&courseID=anonymous&userID=anonymous&course_password=open&outputformat=simple

Initially the math in the solution did not render. Then there was a flash and that math appeared. And now, when he goes back to the same problems from this morning, the solution math renders.

It's bizarre. His device must have the right mathjax config file cached, since it shows math in the problem statement. But then the complete lack of math in the solution was consistent with not having a mathjax config that handled math in script tags. Then, visiting that simple format problem above triggered his device acquiring the needed config file, and now solution math appears in other problems.

Part of me thinks this issue may be confined to our WW server (and maybe Glenn's?) because we each had MathJax 3 going for a time before the move to using script tags around math, and then move to script tags around math and the config file changed.

@dpvc
Copy link
Member

dpvc commented May 11, 2021

@Alex-Jordan, there is a bug in WebKit (the underlying HTML engine for Safari) that can cause CHTML output to be clipped (some characters don't show fully) intermittently. It may be that this is the underlying problem your users are seeing. If they continue to get it, ask them to use the MathJax menu to select SVG output instead, and see if that works better for them.

@pstaabp
Copy link
Member

pstaabp commented Nov 13, 2023

The solution and hint knowls has been changes to using html details/summary tags in openwebwork/pg#941

@pstaabp pstaabp closed this as completed Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants