slachiewicz opened a new pull request, #1088:
URL: https://github.com/apache/maven-doxia/pull/1088

   `MarkdownSink.unknown()` logged a warning and silently dropped any Sink 
event it had no dedicated handling for, taking the content it carried with it 
(e.g. `<object>` embeds, image maps). It now delegates tag reconstruction to 
`Xhtml5BaseSink.unknown()` and emits the raw HTML tag instead, restoring that 
content in the converted output. `<thead>`/`<tbody>`/`<tfoot>` stay excluded, 
since they carry no content of their own and Doxia's table sink API already 
captures the structure they wrap.
   
   Aligned with #1087 (`xdoc-selfclosing-raw-html`): a self-closing, non-void 
tag (e.g. `<object/>`) is never rendered self-closed, since HTML5 ignores the 
trailing slash on non-void elements and would otherwise swallow all following 
content as fallback children. It is written as an explicitly closed pair 
instead.
   
   Root-cause fix for apache/maven-doxia-converter#159.
   
   Verified: end-to-end conversion of the issue's xdoc fixture (`<object 
type="image/svg+xml" data="x.svg"/>`) through a locally built `doxia-converter` 
now yields `<object type="image/svg+xml" data="x.svg"></object>` in the 
Markdown output instead of silently vanishing.
   
   *This change was created with AI assistance.*


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to