Apply the existing serialized-state filter before specialized branches, layout wrappers and target output. Cover hidden textarea and MathML payloads while retaining hidden prose, short JSON and overridden display declarations.
Distinguish normal text, inline code and pre blocks when counting readable content. Honor preformatted_code for inline code and keep blank pre content consistent with the Markdown writer, including referenced code that switches output paths.
Pass the active writer link into inline HTML fallback while keeping block output outside Markdown formatting. Keep audio resources inline inside code so HTML reparsing preserves author links and unique fragment IDs.
Keep authored open attributes on dialogs and details so retained elements preserve their visibility state. Test boolean attribute presence, including empty and false-valued attributes.
Separate synthesized input values from adjacent values and labels in structural HTML output. Reparse paired numeric and labeled fields across all output paths.
Track readable content independently of tags and fragment targets in both writers. Propagate child content marks through captures and carry HTML content metadata, so empty wrappers do not suppress accessible names.
Share structural classifications with the HTML fallback so authored blocks retain boundaries. Cover adjacent sections and related semantic blocks, and retain the authored center wrappers in the layout fixture.
Track active HTML links and render nested media destinations as text, matching the Markdown path. Cover video, audio and iframe content in body, GFM and HTML table output.
Use the current control-value and accessible-name helpers in structural HTML fallback. Preserve MathML wrappers and surrounding whitespace while filtering visual alternatives.
Cover formatted math links with ordinary and nonbreaking spaces in both Markdown and structural HTML output.