Skip to content
Snippets Groups Projects
Commit 3c1c60fd authored by smmercuri's avatar smmercuri
Browse files

Remove cdnjs mathjax function

parent dc30f8e2
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,7 @@ class stack_cas_castext2_parsons extends stack_cas_castext2_block {
$r->items[] = new MP_String(json_encode($xpars));
// Plug in some style and scripts.
$mathjax = ($mathjaxversion === "2") ? stack_get_mathjax2_url_cdnjs() : stack_get_mathjax3_url();
$mathjax = ($mathjaxversion === "2") ? stack_get_mathjax_url() : stack_get_mathjax3_url();
$r->items[] = new MP_List([
new MP_String('script'),
new MP_String(json_encode(['type' => 'text/javascript', 'src' => $mathjax]))]);
......
......@@ -193,10 +193,6 @@ function stack_get_mathjax_url(): string {
return 'https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML';
}
function stack_get_mathjax2_url_cdnjs() {
return 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML';
}
/*
* Gets the url for MathJax 3.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment