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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Fri Jul 11 17:44:05 CEST 2025


Author: michal_h21
Date: 2025-07-11 15:44:05 +0000 (Fri, 11 Jul 2025)
New Revision: 1718

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
add underscore to the \UrlBreaks list

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2025-07-09 20:02:50 UTC (rev 1717)
+++ trunk/lit/ChangeLog	2025-07-11 15:44:05 UTC (rev 1718)
@@ -1,3 +1,10 @@
+2025-07-11  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (url.4ht): add underscore to the list of characters
+	in \UrlBreaks, to prevent underscore in URLs to start subscripts,
+	if the user redefine \UrlBreaks.
+	https://github.com/michal-h21/make4ht/issues/174#issuecomment-3062773762
+
 2025-07-09  Michal Hoftich  <michal.h21 at gmail.com>
 
 	*  tex4ht-jats.tex (jats.4ht, jats-mml.4ht): fixed suport for

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2025-07-09 20:02:50 UTC (rev 1717)
+++ trunk/lit/tex4ht-4ht.tex	2025-07-11 15:44:05 UTC (rev 1718)
@@ -5485,6 +5485,15 @@
 \end{document}  
 \EndVerbatim\EndHPage{}]
 
+\TeX4ht needs \Verb+\UrlBreaks+ to contain the underscore, otherwise 
+it would try to interpred underscores in URLs as start of subscript.
+
+\<shared url\><<<
+\ifdefined\UrlBreaks
+\append:def\UrlBreaks{\do\_}
+\fi
+>>>
+
 %%%%%%%%%%%%%%%%%%
 \Section{breakurl.sty}
 %%%%%%%%%%%%%%%%%%



More information about the tex4ht-commits mailing list.