Repository navigation
Bound a Paragraph-Interrupting Tag Line's Indent by Its Container in prose_lint.py - #3244
Conversation
…prose_lint.py A block tag line indented four or more columns past the paragraph's container is lazy continuation text on GitHub, so it no longer ends the paragraph the sentence-length check measures. Inside a list item the bound is measured from the item's content offset, so a nested tag line still counts. Fixes #3236 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lumn Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e_lint.py Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🟡 Changes recommended
Moderate issues remain for empty list markers and tab-aware indentation.
2 open issues
What changed in this PR
Updates Markdown prose parsing so HTML tag interruption respects list-item indentation.
Changes:
- Tracks paragraph container offsets.
- Computes list content columns and empty-item state.
- Adds indentation regression tests.
| File | Summary |
|---|---|
tests/test_prose_lint.py |
Adds indentation regression coverage. |
.github/actions/prose-gate/prose_lint.py |
Updates paragraph and list indentation handling. |
Review effort: Lite
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #3244 +/- ##
==========================================
Coverage ? 65.60%
==========================================
Files ? 17
Lines ? 9790
Branches ? 0
==========================================
Hits ? 6423
Misses ? 3367
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…e_lint.py Fixes #3243 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
…nt to Main (#3245) ## Summary Promotes two paragraph-boundary fixes, one in `pr_review.py` and one in the prose gate's `prose_lint.py`, from develop. - #3242: `CODE_SPAN` and the quoted-coverage reader share one model of a line that interrupts a paragraph. That model covers list items, ATX headings, thematic breaks, fence openers, and HTML block starts, with or without blockquote markers, and GitHub's renderer settled each shape. An HTML block name ends at a vertical tab, and a test holds that boundary equal to the prose gate's. - #3244: the prose gate ends a paragraph at a block tag line only within three columns of the open paragraph's container. An item's content column counts the marker's spaces in tab-expanded columns, and every empty item marker is read as an item where GitHub reads one. Closes #3227 Closes #3236 Closes #3243 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Summary
OPENING_TAGin the prose gate matched a block tag at any indent, so a tag line indented four or more columns under a paragraph ended it, where GitHub reads it as lazy continuation text. The sentence-length check then measured two short sentences where GitHub shows one.content_offsetgives an item's content column the way CommonMark does: the marker's run of up to four spaces, or one past the marker where five or more follow or the item is empty. Thecode_indentreading of an item's indented code follows the same column now, which corrects a six-column paragraph under-that was read as code.-with no paragraph open sets the list state as an empty item.sentence_length_findingsover all tracked Markdown files shows no difference.Fixes #3236
Fixes #3243
Local review
There were three recorded
local-strict-reviewpasses. Pass 1 found that a lazy line moved the reference and thatmarker.end()missed the marker's spaces, both fixed. Pass 2 found the bare-empty item, fixed. A relatedCODE_SPANcase went onto #3240.The edit budget was spent with one
introducedfinding open: an empty item opening on*,+,1., or1). Copilot raised it too, along with item columns after a tab. The review loop fixed both: the splitter reads items through its ownITEM_MARKER, which accepts the end of the line, and an empty item interrupts an open paragraph only from outside its container. That closes #3243 instead of deferring to it. Two further recorded passes found nothing open.🤖 Generated with Claude Code