summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarvin Borner2020-07-05 20:02:14 +0200
committerMarvin Borner2020-07-05 20:02:14 +0200
commit5abe33942cf8ce3645fdafc68b23edaa3f1bf2a3 (patch)
treeefbe32e2dcbc8c36919eff9f8f97157e76f3d1a1
parent182cca811dc1750327072fa97d4a4d3348e64101 (diff)
WOFWF
-rw-r--r--js/main.js38
-rw-r--r--package-lock.json6
-rw-r--r--package.json2
3 files changed, 21 insertions, 25 deletions
diff --git a/js/main.js b/js/main.js
index 3a7a7c4..b25410b 100644
--- a/js/main.js
+++ b/js/main.js
@@ -1,24 +1,3 @@
-Reveal.initialize({
- controls: false,
- math: {
- //mathjax: "node_modules/mathjax/MathJax.js", // local, but crashes sometimes
- mathjax: "https://cdn.jsdelivr.net/gh/mathjax/mathjax@2.7.8/MathJax.js",
- config: "TeX-AMS_HTML-full",
- // pass other options into `MathJax.Hub.Config()`
- TeX: { Macros: { RR: "{\\bf R}" } },
- },
-
- hash: true,
- dependencies: [
- { src: "plugin/markdown/marked.js" },
- { src: "plugin/markdown/markdown.js" },
- { src: "plugin/highlight/highlight.js" },
- { src: "plugin/math/math.js", async: true },
- { src: "plugin/notes/notes.js", async: true },
- { src: "plugin/mouse-pointer/mouse-pointer.js", async: true },
- ],
-});
-
/******************
* KOCH ANIMATION *
******************/
@@ -141,3 +120,20 @@ Reveal.addEventListener("fragmentshown", (event) => {
default:
}
});
+
+Reveal.initialize({
+ controls: false,
+ hash: true,
+ dependencies: [
+ { src: "plugin/markdown/marked.js" },
+ { src: "plugin/markdown/markdown.js" },
+ { src: "plugin/highlight/highlight.js" },
+ { src: "plugin/math/math.js", async: true },
+ { src: "plugin/notes/notes.js", async: true },
+ { src: "plugin/mouse-pointer/mouse-pointer.js", async: true },
+ ],
+ math: {
+ mathjax: "./node_modules/mathjax/es5/tex-svg-full.js",
+ // pass other options into `MathJax.Hub.Config()`
+ },
+});
diff --git a/package-lock.json b/package-lock.json
index 76f1d3a..54c532d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -3338,9 +3338,9 @@
}
},
"mathjax": {
- "version": "2.7.7",
- "resolved": "https://registry.npmjs.org/mathjax/-/mathjax-2.7.7.tgz",
- "integrity": "sha512-OOl0B2/0tSJAtAZarXnQuLDBLgTNRqiI9VqHTQzPsxf4okT2iIpDrvaklK9x2QEMD1sDj4yRn11Ygci41DxMAQ==",
+ "version": "3.0.5",
+ "resolved": "https://registry.npmjs.org/mathjax/-/mathjax-3.0.5.tgz",
+ "integrity": "sha512-9M7VulhltkD8sIebWutK/VfAD+m+6BIFqfpjDh9Pz/etoKUtjO6UMnOhUcDmNl6iApE8C9xrUmaMyNZkZAlrMw==",
"dev": true
},
"maxmin": {
diff --git a/package.json b/package.json
index 1b4245e..9e74aaa 100644
--- a/package.json
+++ b/package.json
@@ -39,7 +39,7 @@
"mustache": "^2.3.0",
"node-sass": "^4.13.1",
"socket.io": "^2.2.0",
- "mathjax": "2.7.7"
+ "mathjax": "^3.0.5"
},
"license": "MIT"
}