Converting listquote.tex:
\documentclass{article}
\begin{document}
\begin{quote}
\begin{itemize}
\item A
\item B
\end{itemize}
\end{quote}
\begin{itemize}
\item a
\item b
\end{itemize}
\end{document}
with
latexml --strict --destination listquote.xml listquote.tex
results in
[...]
<para xml:id="p1">
<quote>
<itemize xml:id="S0.I1">
<item>
<para xml:id="S0.I1.p1">
<break/>
</para>
</item>
<item xml:id="S0.I1.i1">
<tags>
<tag>•</tag>
<tag role="typerefnum">1st item</tag>
</tags>
<para xml:id="S0.I1.i1.p1">
<p>A
<break/></p>
</para>
</item>
<item xml:id="S0.I1.i2">
<tags>
<tag>•</tag>
<tag role="typerefnum">2nd item</tag>
</tags>
<para xml:id="S0.I1.i2.p1">
<p>B
<break/></p>
</para>
</item>
</itemize>
</quote>
<itemize xml:id="S0.I2">
<item xml:id="S0.I2.i1">
<tags>
<tag>•</tag>
<tag role="typerefnum">1st item</tag>
</tags>
<para xml:id="S0.I2.i1.p1">
<p>a</p>
</para>
</item>
<item xml:id="S0.I2.i2">
<tags>
<tag>•</tag>
<tag role="typerefnum">2nd item</tag>
</tags>
<para xml:id="S0.I2.i2.p1">
<p>b</p>
</para>
</item>
</itemize>
</para>
[...]
Note
<item>
<para xml:id="S0.I1.p1">
<break/>
</para>
</item>
and the other two added <break/> compared to the {itemize} outside of the quote.
I guess the reason for this are the Let('\par', '\@block@cr') in:
DefEnvironment('{quotation}',
'<ltx:quote>#body</ltx:quote>',
beforeDigest => sub { Let('\\\\', '\@block@cr'); Let('\par', '\@block@cr') },
mode => 'text');
and the \par:
DefMacro('\itemize@item', '\par\itemize@item@');
in LaTeX.pool.ltxml.
Converting
listquote.tex:with
results in
Note
and the other two added
<break/>compared to the{itemize}outside of the quote.I guess the reason for this are the
Let('\par', '\@block@cr')in:and the
\par:in
LaTeX.pool.ltxml.