M util/build.ts => util/build.ts +1 -1
@@ 30,7 30,7 @@ ensure_root_dir_promise.then(
const insertNav = mkNavs(root_doc);
-const mathjax_as_text = await Deno.readTextFile('src/mathjax.html');
+const mathjax_as_text = await Deno.readTextFile('util/mathjax.html');
const mathjax_script_tags = domParser.parseFromString(
mathjax_as_text, 'text/html'
).querySelectorAll('script');
A util/mathjax.html => util/mathjax.html +12 -0
@@ 0,0 1,12 @@
+<script>
+ MathJax = {
+ loader: {
+ load: ['[custom]/xypic.js'],
+ paths: {custom: 'https://cdn.jsdelivr.net/gh/sonoisa/XyJax-v3@3.0.1/build/'}
+ },
+ tex: {
+ packages: {'[+]': ['xypic']}
+ }
+ };
+</script>
+<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.1.4/es5/tex-chtml-full.js"></script>