From 0b311348359e1406b173d9c0de4974af3e90f836 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Tue, 18 Oct 2022 03:01:49 +0000
Subject: CTAN sync 202210180301

---
 support/TeX4ht/source/tex4ht-mathjax.tex | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'support/TeX4ht/source/tex4ht-mathjax.tex')

diff --git a/support/TeX4ht/source/tex4ht-mathjax.tex b/support/TeX4ht/source/tex4ht-mathjax.tex
index 2f511185f0..97ac94d20d 100644
--- a/support/TeX4ht/source/tex4ht-mathjax.tex
+++ b/support/TeX4ht/source/tex4ht-mathjax.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-mathjax.tex 1212 2022-10-06 10:29:28Z michal_h21 $
+% $Id: tex4ht-mathjax.tex 1214 2022-10-11 12:25:01Z michal_h21 $
 % compile: latex tex4ht-mathjax
 %
 % Copyright 2018-2022 TeX Users Group
@@ -25,6 +25,7 @@
 |<defined commands|>
 \AtBeginDocument{%
 |<configurations|>
+|<mhchem configurations|>
 }
 \endinput
 >>>
@@ -217,8 +218,10 @@ Fixes for tables of contents.
 \fixmathjaxtoc\exp
 >>>
 
-\<configure mathjax-latex-4ht mhchem\><<<
+\<mhchem configurations\><<<
+\@ifpackageloaded{mhchem}{%
 \def\ce#1{\texttt{\detokenize{\(\ce{#1}\)}}}
+}{}
 >>>
 
 \endinput
-- 
cgit v1.2.3

