My test.tex MWE is:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{mathtools}
\begin{document}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam a aliquam nisi, eu efficitur erat. Vivamus sagittis quis erat ut volutpat. Pellentesque venenatis convallis dignissim. Integer ullamcorper dolor et ornare sodales.
\par The visible samples of the input are $x_s(t) = 0.5\delta(t) -2.8\delta(t-ts) + 1.3\delta(t-2ts)+ 3.5\delta(t-3ts) -1.7\delta(t-4ts) + 1.1\delta(t-5ts) + 4\delta(t-6ts)$.
Their corresponding output values are $x[n] = 0.5\delta[n] -2.8\delta[n-1] + 1.3\delta[n-2]+ 3.5\delta[n-3] -1.7\delta[n-4] + 1.1\delta[n-5] + 4\delta[n-6]$.
\end{document}
When I compile using 'pdflatex test.tex' I got everything justified because the math is breaking in two lines:
But when compiling with 'make4ht test.tex -c make4ht.cfg -d html "mathml, mathjax"', the HTML output is like that:
The make4ht.cfg file used is based on this answer, with some CSS modifications:
\Preamble{xhtml}
% Fix math input errors when using mathml + mathjax + amsmath packages
\catcode`\:=11
\Configure{qopname}
{\Configure{mathop}{*}
{<\a:mathml mtext \mml:class="qopname">}
{</\a:mathml mtext><mo> &\#x2061;<!--FUNCTION APPLICATION--> </mo>}
{}}
\catcode`\:=12
\Css{body{
text-align: justify;
margin:40px auto;
max-width:36em;
line-height:1.5;
font-size: 0.88em;
color:\#222;
background-color:\#FEFEF7;
padding:0 10px;}}
\begin{document}
\EndPreamble
There is any way to fix the HTML output?