summaryrefslogtreecommitdiff
path: root/support/TeX4ht/source/tex4ht-mathml.tex
diff options
context:
space:
mode:
Diffstat (limited to 'support/TeX4ht/source/tex4ht-mathml.tex')
-rw-r--r--support/TeX4ht/source/tex4ht-mathml.tex6
1 files changed, 5 insertions, 1 deletions
diff --git a/support/TeX4ht/source/tex4ht-mathml.tex b/support/TeX4ht/source/tex4ht-mathml.tex
index a8cc0ec955..869396ddec 100644
--- a/support/TeX4ht/source/tex4ht-mathml.tex
+++ b/support/TeX4ht/source/tex4ht-mathml.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-mathml.tex 1365 2023-09-04 14:49:39Z michal_h21 $$
+% $Id: tex4ht-mathml.tex 1366 2023-09-07 10:32:15Z michal_h21 $$
% compile 3 times: latex tex4ht-mathltx
% or xhlatex tex4ht-mathltx "html,3,sections+"
%
@@ -2578,6 +2578,10 @@ The following CSS caused too large whitespace around functions
\ifnum\HCol=2
\PauseMathClass
\HCode{<\a:mathml mtext>}%
+ % the content of this environment is displayed as text, we must switch back to the normal math processing
+ % in inline math
+ \Configure{$}{\EndPauseMathClass\HCode{</\a:mathml mtext>}}{\PauseMathClass\HCode{<\a:mathml mtext>}}{}%
+ \Configure{()}{\HCode{</\a:mathml mtext>}\EndPauseMathClass$}{$\PauseMathClass\HCode{<\a:mathml mtext>}}{}%
\fi
}
{\ifnum\HCol=2