Repository navigation
Close self-closing non-void HTML tags in Markdown parsing - #1087
Conversation
HTML5 has no self-closing syntax outside void elements, so a raw <object .../> in a Markdown source was left unclosed, nesting all following content as its (hidden, fallback-only) children. Fixes #1086
|
Does this cover the case if the tag spans multiple lines? Which can happen... |
|
Yes. Verified by running the pattern rather than reading it:
Multi-line works because the pattern contains no Code blocks are safe for a separate reason worth recording: flexmark escapes their content, so Testing it did turn up one case it misses, though — an unquoted attribute value containing a
This comment was created with AI assistance. |
Closes self-closing non-void HTML tags (e.g.
<object .../>) before Jsoup re-serializes flexmark's raw-HTML passthrough, so they no longer swallow the content that follows as unclosed-tag fallback children.Fixes #1086
Verified:
mvn testondoxia-module-markdown→ all green (new test fails without the fix, passes with it).This change was created with AI assistance.