mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Load MathJax's text-chtml-full component in reviewer/previewer (#2836)
* Load MathJax's text-chtml-full in review screens * Remove no longer needed MathJax extensions
This commit is contained in:
parent
9fd25a87ec
commit
e88dfb68a5
4 changed files with 4 additions and 37 deletions
|
@ -526,39 +526,6 @@ pub const MATHJAX_FILES: &[&str] = &[
|
||||||
"mathjax/es5/a11y/complexity.js",
|
"mathjax/es5/a11y/complexity.js",
|
||||||
"mathjax/es5/a11y/explorer.js",
|
"mathjax/es5/a11y/explorer.js",
|
||||||
"mathjax/es5/a11y/semantic-enrich.js",
|
"mathjax/es5/a11y/semantic-enrich.js",
|
||||||
"mathjax/es5/input/tex/extensions/action.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/all-packages.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/ams.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/amscd.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/autoload.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/bbox.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/boldsymbol.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/braket.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/bussproofs.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/cancel.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/centernot.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/color.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/colortbl.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/colorv2.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/configmacros.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/enclose.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/extpfeil.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/gensymb.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/html.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/mathtools.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/mhchem.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/newcommand.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/noerrors.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/noundefined.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/physics.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/require.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/setoptions.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/tagformat.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/textcomp.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/textmacros.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/unicode.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/upgreek.js",
|
|
||||||
"mathjax/es5/input/tex/extensions/verb.js",
|
|
||||||
"mathjax/es5/output/chtml/fonts/woff-v2/MathJax_AMS-Regular.woff",
|
"mathjax/es5/output/chtml/fonts/woff-v2/MathJax_AMS-Regular.woff",
|
||||||
"mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff",
|
"mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff",
|
||||||
"mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff",
|
"mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff",
|
||||||
|
@ -582,7 +549,7 @@ pub const MATHJAX_FILES: &[&str] = &[
|
||||||
"mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Vector-Bold.woff",
|
"mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Vector-Bold.woff",
|
||||||
"mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Vector-Regular.woff",
|
"mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Vector-Regular.woff",
|
||||||
"mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Zero.woff",
|
"mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Zero.woff",
|
||||||
"mathjax/es5/tex-chtml.js",
|
"mathjax/es5/tex-chtml-full.js",
|
||||||
"mathjax/es5/sre/mathmaps/de.json",
|
"mathjax/es5/sre/mathmaps/de.json",
|
||||||
"mathjax/es5/sre/mathmaps/en.json",
|
"mathjax/es5/sre/mathmaps/en.json",
|
||||||
"mathjax/es5/sre/mathmaps/es.json",
|
"mathjax/es5/sre/mathmaps/es.json",
|
||||||
|
|
|
@ -131,7 +131,7 @@ class Previewer(QDialog):
|
||||||
css=["css/reviewer.css"],
|
css=["css/reviewer.css"],
|
||||||
js=[
|
js=[
|
||||||
"js/mathjax.js",
|
"js/mathjax.js",
|
||||||
"js/vendor/mathjax/tex-chtml.js",
|
"js/vendor/mathjax/tex-chtml-full.js",
|
||||||
"js/reviewer.js",
|
"js/reviewer.js",
|
||||||
],
|
],
|
||||||
context=self,
|
context=self,
|
||||||
|
|
|
@ -355,7 +355,7 @@ class CardLayout(QDialog):
|
||||||
css=["css/reviewer.css"],
|
css=["css/reviewer.css"],
|
||||||
js=[
|
js=[
|
||||||
"js/mathjax.js",
|
"js/mathjax.js",
|
||||||
"js/vendor/mathjax/tex-chtml.js",
|
"js/vendor/mathjax/tex-chtml-full.js",
|
||||||
"js/reviewer.js",
|
"js/reviewer.js",
|
||||||
],
|
],
|
||||||
context=self,
|
context=self,
|
||||||
|
|
|
@ -334,7 +334,7 @@ class Reviewer:
|
||||||
css=["css/reviewer.css"],
|
css=["css/reviewer.css"],
|
||||||
js=[
|
js=[
|
||||||
"js/mathjax.js",
|
"js/mathjax.js",
|
||||||
"js/vendor/mathjax/tex-chtml.js",
|
"js/vendor/mathjax/tex-chtml-full.js",
|
||||||
"js/reviewer.js",
|
"js/reviewer.js",
|
||||||
],
|
],
|
||||||
context=self,
|
context=self,
|
||||||
|
|
Loading…
Reference in a new issue