Open fsparv opened 1 year ago
Thanks for the report. I've fixed that in TeX4ht sources, so it should work finely soon. In the meantime, you can use this configuration file:
\Preamble{xhtml}
\catcode`\:=11
\ConfigureList{description}%
{\EndP\HCode{<dl \a:LRdir class="description">}%
\PushMacro\end:itm
\global\let\end:itm=\empty}
{\PopMacro\end:itm \global\let\end:itm \end:itm
\EndP\HCode{</dd></dl>}\ShowPar}
{\end:itm \global\def\end:itm{\EndP\Tg</dd>}\HCode{<dt
class="description">}\bgroup %\par\ShowPar
%\bfseries
}
{\egroup\EndP\HCode{</dt><dd\Hnewline class="description">}\par\ShowPar
}
\catcode`\:=12
\begin{document}
\EndPreamble
Using This MWE produces an epub that has illegal html:
tex4ebook -d ../epub-out -f epub -t ../mwe1.tex
generated html looks like this:
note particularly:
Note that the html spec for
dt
is different fromdd
andli
as it only allows(PCDATA \| Inline)*
not(PCDATA | Flow)*
https://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_listmodule