summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mehren2019-10-25 21:49:30 +0200
committerDavid Mehren2019-10-25 21:50:48 +0200
commit88b855beb21a4bc96ed9bb421de315395e9f04d8 (patch)
tree7374279f1d97b9909e99a57915b2ec7b8db6f5ad
parent20a67e3446723231961043bffeb5a7b974e891c0 (diff)
Fix compatibility with MathJax 2.7.6
Signed-off-by: David Mehren <dmehren1@gmail.com>
-rw-r--r--package.json2
-rw-r--r--webpack.common.js10
2 files changed, 10 insertions, 2 deletions
diff --git a/package.json b/package.json
index ea0d9b05..f6efb1e8 100644
--- a/package.json
+++ b/package.json
@@ -79,7 +79,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 ee8e9e80..0aae309d 100644
--- a/webpack.common.js
+++ b/webpack.common.js
@@ -131,7 +131,7 @@ module.exports = {
}),
new CopyWebpackPlugin([
{
- context: path.join(__dirname, 'node_modules/mathjax'),
+ context: path.join(__dirname, 'node_modules/mathjax/unpacked'),
from: {
glob: '**/*',
dot: false
@@ -139,6 +139,14 @@ module.exports = {
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: {
glob: 'dist/**/*',