From e2243bf7a92ce3b44ee67ef015e0bedde96a6570 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 19 Jun 2020 18:43:23 +0530 Subject: [PATCH] Upgrade MathJax to version 3 version 3 is more performant, smaller and simpler to integrate, without monkeypatching. On the down side, it does not do line breaking, as yet. Note that only the viewer is currently ported --- manual/mathjax.html | 2 +- manual/resources/mathjax.epub | Bin 4092 -> 4123 bytes setup/mathjax.py | 14 ++---- src/calibre/gui2/viewer/mathjax.py | 72 ---------------------------- src/calibre/gui2/viewer/web_view.py | 44 +++++++++++------ src/pyj/read_book/mathjax.pyj | 69 +++----------------------- src/pyj/viewer-main.pyj | 51 +------------------- 7 files changed, 43 insertions(+), 209 deletions(-) delete mode 100644 src/calibre/gui2/viewer/mathjax.py diff --git a/manual/mathjax.html b/manual/mathjax.html index 0cf8c1f8b1..88047e6023 100644 --- a/manual/mathjax.html +++ b/manual/mathjax.html @@ -8,7 +8,7 @@