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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Thu Dec 2 10:42:42 CET 2021


Author: michal_h21
Date: 2021-12-02 09:42:42 +0000 (Thu, 02 Dec 2021)
New Revision: 1023

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-mathjax.tex
Log:
use word boundary instead of space in the \par replacing regex

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2021-12-01 22:49:35 UTC (rev 1022)
+++ trunk/lit/ChangeLog	2021-12-02 09:42:42 UTC (rev 1023)
@@ -1,3 +1,9 @@
+2021-12-02  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-mathjax.tex (mathjax-latex-4ht.4ht): search for \par<word boundary> in
+	regex that replaces \par commands, as suggested by David Carlisle.
+	https://tex.stackexchange.com/q/624671/2891
+	
 2021-12-01  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-mathjax.tex (mathjax-latex-4ht.4ht): search for \par<space> in

Modified: trunk/lit/tex4ht-mathjax.tex
===================================================================
--- trunk/lit/tex4ht-mathjax.tex	2021-12-01 22:49:35 UTC (rev 1022)
+++ trunk/lit/tex4ht-mathjax.tex	2021-12-02 09:42:42 UTC (rev 1023)
@@ -63,7 +63,7 @@
   \regex_replace_all:nnN { \x{3C} } { < } \l_tmpa_tl 
   \regex_replace_all:nnN { \x{3E} } { > } \l_tmpa_tl
   % replace \par command with blank lines
-  \regex_replace_all:nnN { \x{5C}par\s } {\x{A}\x{A}} \l_tmpa_tl
+  \regex_replace_all:nnN { \x{5C}par\b } {\x{A}\x{A}} \l_tmpa_tl
   \tl_set:Nx \l_tmpb_tl{ \l_tmpa_tl }
   \HCode{\l_tmpb_tl}
 }



More information about the tex4ht-commits mailing list.