I want to convert the following (minimized) TeX file to HTML:
\documentclass{article}
\begin{document}
We have $a = a$, \(a = a\) and also
\[c = c\] and even
\begin{equation*}
E = mc^2.
\end{equation*}
All seems to work, except for
$$F = ma.$$
\end{document}
My config file is
\RequirePackage{amsmath,amsfonts,amssymb,amsthm,enumitem,booktabs,float,graphicx,hyperref}
\Preamble{xhtml}
\Configure{MathJaxConfig}{{
tex: {
tags: "ams",
\detokenize{%
inlineMath: [ [’$’,’$’], ["\(","\)"] ],
displayMath: [ [’$$’,’$$’], ["\[","\]"] ],}
processEscapes: true,
processEnvironments: true,
packages: [’base’, ’color’, ’ams’, ’boldsymbol’, ’newcommand’, ’verb’]
}
}}
\Configure{MathjaxSource}{https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js}
\def\eqref#1{$\mathrm{(\ref{#1})}$}
\begin{document}
\EndPreamble
and the command I run is
make4ht -c /CONF/sample.cfg markup.tex "mathjax"
Unfortunately, this produces images for every formula that is wrapped between two dollar signs $$. How can I fix this? I have tried to mimic the solutions to this and this answers by Michal by detokenizing everything between two dollar signs but it did not work.
Also, I do not want to use MathML as it does not parse my formulas as good as TeX-to-MathJax.

$$which is not supported latex syntax. – David Carlisle Oct 10 '22 at 18:51$$? – qarabala Oct 10 '22 at 18:56$$is not latex, if make4ht supports it that is because it is supporting some non-latex primitive tex constructs. – David Carlisle Oct 10 '22 at 19:02$$and I have to account for that. So I preferably need a native make4ht solution. If this is not possible, then I will have to read and replace each opening and closing$$with\[...\]manually before feeding the string to make4ht. – qarabala Oct 10 '22 at 19:08$$F = ma.$$becomes\[F = ma.\]in the HTML output and is rendered correctly – DG' Oct 10 '22 at 19:47equation*not defined, you need to useamsmath). I've added code to support$$few weeks ago. – michal.h21 Oct 10 '22 at 19:59