~bfluhr/website

0248641cc7a4f4b9065e22034438e9f13072ba49 — Benedikt Fluhr 2 years ago 5d5b4e8
Added Missing File: 'mathjax.html'
2 files changed, 13 insertions(+), 1 deletions(-)

M util/build.ts
A util/mathjax.html
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>