Skip to content

Fix ASCII HTML block starts per CommonMark 0.31.2 - #440

Open
rupayon123 wants to merge 2 commits into
executablebooks:masterfrom
rupayon123:fix/ascii-html-block-starts
Open

rupayon123 wants to merge 2 commits into
executablebooks:masterfrom
rupayon123:fix/ascii-html-block-starts

Conversation

@rupayon123

@rupayon123 rupayon123 commented Sep 26, 2026 •

Copy link
Copy Markdown

Fixes #437. Lowercase declarations now interrupt paragraphs, and case-insensitive HTML block tag matching uses ASCII case folding so Unicode lookalikes do not start blocks. Focused regressions cover both cases and an ASCII mixed-case control.

Validation: five input cases failed on the previous implementation; after the fix, python -m pytest -q tests/ passed (1,035 tests), and all applicable pre-commit hooks (including strict mypy and Ruff), plus git diff --check, passed locally. Initial pre-commit.ci failed because parametrized tests used an untyped decorator; the follow-up commit removes that decorator while retaining all cases. GitHub Actions require maintainer approval and have not executed. No browser or renderer integration was tested.

AI assistance was used to develop and validate this change.

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.

html_block: lowercase declarations and Unicode case-folding in tag names diverge from CommonMark 0.31.2

1 participant