Skip to content
Snippets Groups Projects
Commit c20128d4 authored by mathias.chouet's avatar mathias.chouet
Browse files

Fix #416 - update to MathJax 3

parent 2232abbb
No related branches found
No related tags found
1 merge request!82Resolve "Ajout de la fonctionnalité "Respect des critères""
Pipeline #138285 passed
window.MathJax = {
tex: {
inlineMath: [["\\(", "\\)"]],
displayMath: [["\\[", "\\]"]],
processEscapes: true,
processEnvironments: true
},
options: {
ignoreHtmlClass: ".*|",
processHtmlClass: "arithmatex"
}
};
\ No newline at end of file
......@@ -10,12 +10,15 @@ theme:
language: 'en'
use_directory_urls: false
extra_javascript:
- ../javascripts/mathjax/MathJax.js?config=TeX-AMS_CHTML
- ../javascripts/mathjax.config.js
- ../javascripts/mathjax/tex-mml-chtml.js
- ../javascripts/matomo-tracking.js
markdown_extensions:
- mdx_math
- footnotes
- codehilite
- pymdownx.arithmatex:
generic: true
nav:
- Presentation of Cassiopée:
- index.md
......
......@@ -10,12 +10,15 @@ theme:
language: 'fr'
use_directory_urls: false
extra_javascript:
- ../javascripts/mathjax/MathJax.js?config=TeX-AMS_CHTML
- ../javascripts/mathjax.config.js
- ../javascripts/mathjax/tex-mml-chtml.js
- ../javascripts/matomo-tracking.js
markdown_extensions:
- mdx_math
- footnotes
- codehilite
- pymdownx.arithmatex:
generic: true
nav:
- Présentation de Cassiopée:
- index.md
......
......@@ -13146,9 +13146,9 @@
"integrity": "sha1-mnHEh0chjrylHlGmbaaCA4zct78="
},
"mathjax": {
"version": "2.7.8",
"resolved": "https://registry.npmjs.org/mathjax/-/mathjax-2.7.8.tgz",
"integrity": "sha512-n4xZJ+cw7o01YOSVhxxjyOmibqBPCi+XTDof4siq78QWMx7Fxjzgb/mxMUEElMzTDodMV7ENIMsjREOSldOQPw=="
"version": "3.0.5",
"resolved": "https://registry.npmjs.org/mathjax/-/mathjax-3.0.5.tgz",
"integrity": "sha512-9M7VulhltkD8sIebWutK/VfAD+m+6BIFqfpjDh9Pz/etoKUtjO6UMnOhUcDmNl6iApE8C9xrUmaMyNZkZAlrMw=="
},
"md5-file": {
"version": "5.0.0",
......
......@@ -66,7 +66,7 @@
"he": "^1.2.0",
"jalhyd": "file:../jalhyd",
"material-design-icons": "^3.0.1",
"mathjax": "^2.7.8",
"mathjax": "^3.0.5",
"mermaid": "^8.7.0",
"ngx-konami": "^1.7.1",
"ngx-markdown": "^10.1.1",
......
......@@ -16,10 +16,9 @@ fs.emptyDirSync(destPath);
fs.ensureDirSync(destPathMJ + "/fonts/HTML-CSS/TeX/", { recursive: true });
// copy required files only
fs.copySync("node_modules/mathjax/MathJax.js", destPathMJ + "/MathJax.js");
fs.copySync("node_modules/mathjax/config", destPathMJ + "/config");
fs.copySync("node_modules/mathjax/jax", destPathMJ + "/jax");
fs.copySync("node_modules/mathjax/fonts/HTML-CSS/TeX/woff", destPathMJ + "/fonts/HTML-CSS/TeX/woff");
fs.copySync("node_modules/mathjax/fonts/HTML-CSS/TeX/otf", destPathMJ + "/fonts/HTML-CSS/TeX/otf");
fs.copySync("node_modules/mathjax/es5/tex-mml-chtml.js", destPathMJ + "/tex-mml-chtml.js");
fs.copySync("node_modules/mathjax/es5/output/chtml/fonts", destPathMJ + "/output/chtml/fonts");
fs.copySync("docs/mathjax.config.js", destPath + "/mathjax.config.js");
fs.copySync("docs/matomo-tracking.js", destPath + "/matomo-tracking.js");
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment