MDI 2.1 editorial comments across bindings and publication tools - #90
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Recognize editorial comments in all MDI documents, including declared 2.0 and unversioned source. Keep exact payloads and UTF-8 spans in the Rust-owned internal tree and canonical source saving. Default document APIs retain comment-free IR 1.0; explicit inclusion returns IR 1.1. Body projections, layout and publications always omit valid comments. Previously visible HTML comment text in old documents now disappears from publications; unterminated comments remain literal with a warning.
Extend Rust, WASM, C/JNI, Python, Swift, Android, all JavaScript adapters and CLI consistently. Preserve opaque multiline payloads through mdast serialization. Publish the ecosystem on the 2.1 series using explicit version preflight, dependency closure and immutable CI artifacts with checksum-verified recovery.
Related issue
Closes #89.
Validation
cargo test,cargo clippy -- -D warnings, formatting, shared comment fixtures and a 10,000-unterminated-opener regression.pnpm typecheck,pnpm build,pnpm test:coverage, packed browser WASM contracts in Chromium/Firefox/WebKit, and nine packing/release-policy/recovery tests.actionlintandgit diff --checkpassed. Local 2.1.0 tarballs record candidate SHA and SHA-512 integrity values; registry preflight finds all eleven versions available.Checklist
Notes for reviewers
Existing entry points and default IR remain compatible. Source version declarations are preserved. Filtered external IR cannot restore omitted comments. All production publishing remains in GitHub Actions. The downstream editor uses hidden atoms and prepared cache version 2; this PR does not release the illusions application.