[tex4ht-commits] [SCM] tex4ht updated: r1561 - trunk/lit

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Fri Sep 27 12:31:47 CEST 2024


Author: michal_h21
Date: 2024-09-27 10:31:47 +0000 (Fri, 27 Sep 2024)
New Revision: 1561

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html4.tex
Log:
Don't add link to the mathjax script if the address is empty

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2024-09-26 14:25:58 UTC (rev 1560)
+++ trunk/lit/ChangeLog	2024-09-27 10:31:47 UTC (rev 1561)
@@ -1,3 +1,8 @@
+2024-09-27  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-html4.tex (html4-math.4ht): don't add link to the MathJax
+	script if the address is empty.
+
 2024-09-26  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (fancyvrb.4ht): fixed support for background

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2024-09-26 14:25:58 UTC (rev 1560)
+++ trunk/lit/tex4ht-html4.tex	2024-09-27 10:31:47 UTC (rev 1561)
@@ -8792,7 +8792,7 @@
 \fi
 \Configure{@HEAD}{\HCode{<script>window.MathJax = \a:MathJaxConfig</script>\Hnewline}}
 \Configure{MathjaxSource}{https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js}
-\Configure{@HEAD}{\HCode{ <script type="text/javascript" async="async" id="MathJax-script" src="\a:MathjaxSource"></script> \Hnewline}}
+\Configure{@HEAD}{\ifx\a:MathjaxSource\@empty\else\HCode{<script type="text/javascript" async="async" id="MathJax-script" src="\a:MathjaxSource"></script> \Hnewline}\fi}
 \edef\:RestoreMathjaxCatcodes{\catcode`\noexpand \&=\the\catcode`\&}
 \def\:HandleMathjaxCatcodes{\edef\:RestoreMathjaxCatcodes{\catcode`\noexpand \&=\the\catcode`\&}\catcode`\&=11}
 \Configure{$}{\:HandleMathjaxCatcodes}{\:RestoreMathjaxCatcodes}{\expandafter\AltMathOne}



More information about the tex4ht-commits mailing list.