diff --git a/bower.json b/bower.json index 38d46265f..2f7e64ed4 100644 --- a/bower.json +++ b/bower.json @@ -18,7 +18,6 @@ "tests" ], "dependencies": { - "MathJax": "3.0.5" }, "resolutions": { "bootstrap": "^v4.0.0", diff --git a/package-lock.json b/package-lock.json index 1cc6acd28..88b193c7b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index d797b1380..b66bdc0ee 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/scripts/copy-components.js b/scripts/copy-components.js index c1396cab0..541c55b56 100644 --- a/scripts/copy-components.js +++ b/scripts/copy-components.js @@ -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); diff --git a/www/common/diffMarked.js b/www/common/diffMarked.js index e6c6760af..2404dd4f3 100644 --- a/www/common/diffMarked.js +++ b/www/common/diffMarked.js @@ -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) {