-
-
Notifications
You must be signed in to change notification settings - Fork 26
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 formulas are not rendered #283
Comments
Original: ZIM MathJax is found but not applied 🫤 @kelson42 the questions list doesn't uses mathjax on the original website neither: https://mathoverflow.net/search?q=estimating-the-size-of-solutions-of-a-diophantine-equation |
@rgaudin Something else worth noting from your example, is that the embedded image seems to be incorrect as well. This applies to the earlier version of the question, which the ZIM is based on: https://mathoverflow.net/posts/227713/revisions |
@mazen-mardini thank you for noticing! I've opened a separate ticket. |
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions. |
Reddit users are complaining about this here: https://www.reddit.com/r/Kiwix/comments/1g5q59l/how_to_render_latexmathjax_on_kiwix/ |
New complain here kiwix/kiwix-desktop#1225 To me, this is priority now to fux this. Too many people are impacted. |
It looks like the problem is mostly simple: MathJax configuration is not done properly, so only default MathJax configuration is applied. Currently, configuring MathJax is based on a sotoki/src/sotoki/templates/base.html Line 32 in da6514a
This means that we do not enable the I hacked the sample webpage on my browser and it works well (all equations are handled by MathJax). Hacks (not sure all actions are required, I'm too lazy to confirm) are as follow: Set the configuration inline instead of in an Remove existing MathJax script tag sourcing Cleanup MathJax (in debugger):
Add MathJax back:
Et voilà. This now has to be incorporated in the codebase and tested in a real ZIM. I'm not that experienced with sotoki, is there a possibility to test a modification without running the full scrape? Or should I just "zimrecreate" the ZIM with one or two modified HTML to confirm the solution? Or I'm maybe just overengineering the thing, it is supposed to take only 1 or 2 hours to run mathoverflow after all. |
Shouldn't be that long. You can push a dev tag to try in ZF if you don't want to invest in this just for this issue which seems like a quick fix |
Hello!
Math formulas in for example (Theoretical) Computer Science are not rendered. Normally, MathJax should render an expression such as
$a \in R$
to a ∈ R, but it doesn't.I suspect that this affects all StackOverflow packages.
The text was updated successfully, but these errors were encountered: