From: Guenter M. <mi...@us...> - 2025-07-21 00:08:18
|
On 2025-07-14, Schimon Jehudah via Docutils-users wrote: > Good day. > I am interested to know whether it is possible to output an HTML code, > preferably XHTML formatted, without elements "head" nor "body". Yes, this is easily possible with the "publish_parts()" function. https://docutils.sourceforge.io/docs/api/publisher.html#publish-parts (The "html_body" part is the <body> content.) Both, the "html4css1" writer and the "html5" writer export valid XML. Günter |