[tex4ht] domfilter: XML DOM parsing when using \begin{algorithmic}
Michal Hoftich
michal.h21 at gmail.com
Thu Apr 10 10:11:34 CEST 2025
Hi Nasser,
Any idea what causes this?
thanks for the report. Paragraphs are handled incorrectly before the end of
the algorithmicx environment. This config file should fix that:
%%%%%%%%%%%%%%
\Preamble{xhtml}
\ConfigureEnv{algorithmic}
{\ifvmode \IgnorePar\fi \EndP
\HCode{<div class="algorithmic">}%
\bgroup
\Configure{HtmlPar}
{\EndP}
{\EndP}
{}
{}%
}
{\egroup
\ifvmode\IgnorePar\fi\EndP\HCode{</div>}\par\ShowPar
}
{}{}
\begin{document}
\EndPreamble
%%%%%%%%%%%%%%%%
I will add the fix to TeX4ht sources too.
Best,
Michal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex4ht/attachments/20250410/5fd4456f/attachment.htm>
More information about the tex4ht
mailing list.