diff --git a/package.json b/package.json index 532af8350..7ff38787c 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "markdown-it-sub": "^1.0.0", "markdown-it-sup": "^1.0.0", "markdown-pdf": "^10.0.0", - "mathjax": "~2.7.0", + "mathjax": "~2.7.6", "mattermost": "^3.4.0", "mermaid": "~8.2.3", "meta-marked": "git+https://github.com/codimd/meta-marked#semver:^0.4.5", diff --git a/webpack.common.js b/webpack.common.js index ee8e9e80e..0aae309d0 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -131,13 +131,21 @@ module.exports = { }), new CopyWebpackPlugin([ { - context: path.join(__dirname, 'node_modules/mathjax'), + context: path.join(__dirname, 'node_modules/mathjax/unpacked'), from: { glob: '**/*', dot: false }, to: 'MathJax/' }, + { + context: path.join(__dirname, 'node_modules/mathjax/fonts'), + from: { + glob: '**/*', + dot: false + }, + to: 'fonts/' + }, { context: path.join(__dirname, 'node_modules/emojify.js'), from: {