Skip to content

🐛 FIX: Respect xhtmlOut when rendering task-list checkboxes - #489

Open
FFspiky wants to merge 1 commit into
executablebooks:masterfrom
FFspiky:fix-tasklist-xhtml-output
Open

FFspiky wants to merge 1 commit into
executablebooks:masterfrom
FFspiky:fix-tasklist-xhtml-output

Conversation

@FFspiky

@FFspiky FFspiky commented Nov 24, 2026

Copy link
Copy Markdown

With the default gfm-like2 preset, a list such as - [x] done emits an unclosed <input> even though xhtmlOut is enabled. XML consumers reject the resulting list. Render the checkbox with the same void-element convention as images and line breaks, retaining HTML-style output when the option is disabled.

The regression tests cover checked and unchecked items, editable and disabled checkboxes, and both output modes. Six XHTML cases failed against master. On macOS arm64 with Python 3.13, the core suite passed all 1,202 tests, and the plugin suite had 730 passes, three skips and one expected failure. An independent xmllint check accepted all six XHTML fragments after the change.

OpenAI Codex prepared and tested this contribution.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant