removing bower: migrate mathjax

Signed-off-by: Pamplemousse <git@xaviermaso.com>
This commit is contained in:
Pamplemousse 2023-01-07 13:26:47 +01:00
parent 805681f4cc
commit 99b741ba6b
5 changed files with 16 additions and 2 deletions

View file

@ -18,7 +18,6 @@
"tests"
],
"dependencies": {
"MathJax": "3.0.5"
},
"resolutions": {
"bootstrap": "^v4.0.0",

13
package-lock.json generated
View file

@ -49,6 +49,7 @@
"lesshint": "6.3.7",
"localforage": "^1.5.2",
"marked": "^1.1.0",
"mathjax": "3.0.5",
"open-sans-fontface": "^1.4.0",
"rangy": "~1.3.0",
"require-css": "0.1.10",
@ -3084,6 +3085,12 @@
"node": ">= 8.16.2"
}
},
"node_modules/mathjax": {
"version": "3.0.5",
"resolved": "https://registry.npmjs.org/mathjax/-/mathjax-3.0.5.tgz",
"integrity": "sha512-9M7VulhltkD8sIebWutK/VfAD+m+6BIFqfpjDh9Pz/etoKUtjO6UMnOhUcDmNl6iApE8C9xrUmaMyNZkZAlrMw==",
"dev": true
},
"node_modules/media-typer": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
@ -7731,6 +7738,12 @@
"integrity": "sha512-EkE7RW6KcXfMHy2PA7Jg0YJE1l8UPEZE8k45tylzmZM30/r1M1MUXWQfJlrSbsTeh7m/XTwHbWUENvAJZpp1YA==",
"dev": true
},
"mathjax": {
"version": "3.0.5",
"resolved": "https://registry.npmjs.org/mathjax/-/mathjax-3.0.5.tgz",
"integrity": "sha512-9M7VulhltkD8sIebWutK/VfAD+m+6BIFqfpjDh9Pz/etoKUtjO6UMnOhUcDmNl6iApE8C9xrUmaMyNZkZAlrMw==",
"dev": true
},
"media-typer": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",

View file

@ -52,6 +52,7 @@
"lesshint": "6.3.7",
"localforage": "^1.5.2",
"marked": "^1.1.0",
"mathjax": "3.0.5",
"open-sans-fontface": "^1.4.0",
"rangy": "~1.3.0",
"require-css": "0.1.10",

View file

@ -36,6 +36,7 @@ Fse.mkdirpSync(componentsPath);
"saferphore",
"jszip",
"dragula",
"mathjax",
].forEach(l => {
const source = Path.join("node_modules", l);
const destination = Path.join(componentsPath, l);

View file

@ -57,7 +57,7 @@ define([
__stubbed: true,
tex2svg: function (a, b) {
require([
'/bower_components/MathJax/es5/tex-svg.js',
'/components/mathjax/es5/tex-svg.js',
], function () {
console.debug("Loaded mathjax");
if (Mathjax.__stubbed) {