I'm surprised/confused by LaTeXML's handling of lists. With an example like this called test.tex:
\documentclass{article}
\begin{document}
Hello itemize:
\begin{itemize}
\item one
\item two
\end{itemize}
\end{document}
Running the command
latexml test.tex | latexmlpost - --destination=test.html
Produces the following HTML: (snipped to the interesting bits)
<article class="ltx_document">
<div id="p1" class="ltx_para">
<p class="ltx_p">Hello itemize:</p>
<ul id="I1" class="ltx_itemize">
<li id="I1.i1" class="ltx_item" style="list-style-type:none;">
<span class="ltx_tag ltx_tag_itemize">•</span>
<div id="I1.i1.p1" class="ltx_para">
<p class="ltx_p">one</p>
</div>
</li>
<li id="I1.i2" class="ltx_item" style="list-style-type:none;">
<span class="ltx_tag ltx_tag_itemize">•</span>
<div id="I1.i2.p1" class="ltx_para">
<p class="ltx_p">two</p>
</div>
</li>
</ul>
</div>
</article>
This is strange because not only is the bullet typeset explicitly (which I wouldn't have expected), more importantly the content of the list is wrapped in div and p tags which means there's a linebreak between the bullet and the item!
Obviously that's not a problem if I'm using the latexml CSS file, but I'd like to re-use the HTML in a context in which I can't customise the CSS used.
Anyone have any ideas on how to "improve" the output here?
I'm using version
latexml (LaTeXML version 0.8.2; revision 644644a)

pandoc? This program convert your MWE in a simpler HTML file without the SPAN and DIV tags. – Fran Feb 08 '17 at 18:49\foodefined as\newcommand\foo{bah}is converted in HTML as<span>bah</span>(obviously losing the definition). – Fran Feb 09 '17 at 07:52\newcommandas a special case :) To be honest, I suspect that I could get pandoc to do what I needed... but I like the degree to which latexml actually understands the LaTeX source. Whether I take advantage of such things remains to be seen! – Will Robertson Feb 09 '17 at 08:44