Browse Source

fix: le cdn de mathjax.org ferme (https://www.mathjax.org/cdn-shutting-down/). On utilise le CDN de remplacement

master v1.4.1
erational 2 weeks ago
parent
commit
3f0a8fffbc
  1. 2
      mathjax_pipelines.php
  2. 2
      paquet.xml

2
mathjax_pipelines.php

@ -25,7 +25,7 @@ function mathjax_flux(){
$param .= "});";
$flux = '<script type="text/x-mathjax-config">'.$param.'</script>';
if (lire_config('mathjax/mode_dappel', 'cdn') == 'cdn') {
$flux .= '<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"></script>';
$flux .= '<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML"></script>';
} else if (lire_config('mathjax/mode_dappel', 'cdn') == 'download') {
$js = find_in_path('lib/mathjax/MathJax.js').'?config=TeX-AMS_HTML';
$flux .= '<script type="text/javascript" src="'.$js.'"></script>';

2
paquet.xml

@ -1,7 +1,7 @@
<paquet
prefix="mathjax"
categorie="outil"
version="1.4.0"
version="1.4.1"
etat="test"
logo="prive/themes/spip/images/mathjax-xx.svg"
documentation="https://contrib.spip.net/MathJax-pour-SPIP"

Loading…
Cancel
Save