Skip to content

Mistune 3 parser refactor + CI tooling#11

Open
philippb wants to merge 19 commits intomasterfrom
refactor/mistune3-api
Open

Mistune 3 parser refactor + CI tooling#11
philippb wants to merge 19 commits intomasterfrom
refactor/mistune3-api

Conversation

@philippb
Copy link
Contributor

@philippb philippb commented Jan 19, 2026

Goal

Upgrade to the Mistune 3 parser stack while preserving master behavior for structure diff output.

What Changed

  • Refactored parser internals for Mistune 3 token APIs while keeping public sdiff behavior stable.
  • Fixed inline token buffering regression (links/images/markers/linebreaks) that could duplicate rendered text.
  • Restored legacy-compatible parsing semantics for key markdown edge cases.
  • Added/expanded parser and compatibility-focused tests.
  • Aligned lint configuration with branch CI expectations.
  • Added coverage-focused tests to satisfy repository coverage gate.

Validation

  • make test passes on refactor/mistune3-api.
  • python -m flake8 --config .flake8 sdiff tests passes.
  • python -m coverage report -m passes with total coverage above fail_under=96.

Compatibility Notes

  • Objective is behavioral compatibility with master for structure diff, not markdown auto-formatting.
  • Any behavior differences intended as improvements should be called out explicitly before expectation changes.

@philippb philippb changed the title refactor/mistune3 api Mistune 3 parser refactor + CI tooling Jan 19, 2026
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