Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document using existing MathJaX (disable?) #696

Open
kno10 opened this issue Nov 5, 2023 · 0 comments
Open

Document using existing MathJaX (disable?) #696

kno10 opened this issue Nov 5, 2023 · 0 comments
Labels

Comments

@kno10
Copy link
Contributor

kno10 commented Nov 5, 2023

Describe the bug

We can set, e.g.,

"mathjaxUrl" = false

to disable mathjax. Yet, the documentation is unclear on the consequences of this: will this disable mathjax completely?

I already use MathJax4, and I already have it configured, hence I do not want thebe to load another version/copy, but simply use the existing mathjax.

This section indicates that thebe relies on the mathjaxUrl to be set:

export function getRenderers(mathjax: MathjaxOptions) {
if (RENDERERS == null) {
RENDERERS = EXTENDED_FACTORIES.filter((f) => {
// filter out latex renderer if mathjax is unavailable
if (f.mimeTypes.indexOf('text/latex') >= 0) {
if (mathjax.mathjaxUrl) {
return true;
} else {
console.debug('thebe:getRenderers MathJax unavailable');
return false;
}
} else {
return true;
}
});
}
let latexTypesetter;
if (mathjax.mathjaxUrl && mathjax.mathjaxConfig) {
latexTypesetter = new MathJaxTypesetter({
url: mathjax.mathjaxUrl,
config: mathjax.mathjaxConfig,
});
}
return {
initialFactories: [...RENDERERS],
latexTypesetter,
};
}

But on the other hand, this probably only adds "mathjax cell support", interesting for editable math? Furthermore, mathjax2 extension appears to be legacy to me, as jupyter updated to mathjax3 already? jupyterlab/jupyterlab#13877

Reproduce the bug

n/a

List your environment

n/a

@kno10 kno10 added the bug label Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant