mirror of
https://github.com/urbit/developers.urbit.org.git
synced 2024-09-11 13:55:59 +03:00
44 lines
1.3 KiB
JavaScript
44 lines
1.3 KiB
JavaScript
import { Html, Head, Main, NextScript } from 'next/document'
|
|
import Script from 'next/script';
|
|
|
|
export default function Document() {
|
|
return (
|
|
<Html>
|
|
<Head />
|
|
<body>
|
|
<Main />
|
|
<NextScript />
|
|
<Script strategy="beforeInteractive" dangerouslySetInnerHTML={{
|
|
__html: `window.__MathJax_State__ = {
|
|
isReady: false,
|
|
promise: new Promise(resolve => {
|
|
|
|
window.MathJax = {
|
|
loader: {load: ['[tex]/autoload', '[tex]/ams']},
|
|
tex: {
|
|
packages: {'[+]': ['autoload', 'ams']},
|
|
processEscapes: true
|
|
},
|
|
jax: ["input/TeX","output/CommonHTML"],
|
|
options: {
|
|
renderActions: {
|
|
addMenu: []
|
|
}
|
|
},
|
|
startup: {
|
|
typeset: false,
|
|
ready: () => {
|
|
MathJax.startup.defaultReady();
|
|
window.__MathJax_State__.isReady = true;
|
|
resolve();
|
|
}
|
|
}
|
|
};
|
|
})
|
|
};`}}
|
|
/>
|
|
<Script strategy="beforeInteractive" id="MathJax-script" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js" />
|
|
</body>
|
|
</Html>
|
|
)
|
|
} |