View Single Post
Old 03-10-2025, 09:57 AM   #18
wanderson
Enthusiast
wanderson began at the beginning.
 
wanderson's Avatar
 
Posts: 28
Karma: 10
Join Date: Jul 2017
Location: Austin TX USA
Device: Kindle Paperwhite Gen 11, Likebook Mars & TCL NxtPaper 11
Quote:
Originally Posted by kovidgoyal View Post
In theory it could work, since the editor uses chromium to render which supposedly support mathml and up to date calibre uses a new enough version of Qt WebEngine that it should work, so you can try it without the mathjax canary script and see.
I don't use the mathjax script. In the Calibre source file /src/pyj/editor.pyj, the routine check_for_maths() returns True not only if it sees the so-called canary script name, but also returns True if it sees the MathML xmlns namespace declaration. However, I do need to use that same namespace declaration for native MathML to work. So I need to somehow prevent Mathjax from loading in this circumstance.

Any suggestions are welcome.

Last edited by wanderson; 03-10-2025 at 04:33 PM.
wanderson is offline   Reply With Quote