Repository navigation
Conversation
## Summary `CODE_SPAN` in `scripts/pr_review.py` paired a stray backtick across a list item, a heading, a thematic break, or a fence opener, because it ended a span only at a blank line or an HTML block start. It now ends a span at every line that interrupts a paragraph, from one shared pattern, `INTERRUPTS_PARAGRAPH`. `STARTS_BLOCK`, which ends a quotation's lazy continuation in `coverage_statements`, is now that same pattern. - GitHub's renderer settled each shape the tests pin, in both directions. A list item ends a paragraph only with content, and an ordered one only at 1. A zero-padded `0001.` counts. `####### h` and `#h` do not. - A line opening such a block behind blockquote markers ends a span too. A bare quoted line still continues a quoted span, since it does on GitHub. - An HTML block name now ends at a vertical tab (`BLOCK_SPACE`), as the #3227 comment asked. The agreement test holds that constant equal to the prose gate's. - One existing test quoted a bullet across a span opened on the line above. GitHub ends that paragraph at the bullet, so the test now quotes the sentence spelling. Fixes #3227 ## Local review There were three recorded `local-strict-review` passes. Pass 1 raised a setext-underline regression inside containers (fixed by dropping that arm) and a quoted block-start gap (fixed). Pass 2 raised exponential backtracking in the new quote prefix (fixed, now linear). Two pre-existing findings were filed as #3240 and #3241. The edit budget was spent with one `introduced` finding open: the quote prefix allowed three spaces between two markers where GitHub allows four. Copilot raised it too, and 0ce5c6a fixed it under a fourth recorded pass, which found nothing further. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…prose_lint.py (#3244) ## Summary `OPENING_TAG` in 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. - A tag line now ends the open paragraph only within three columns of that paragraph's container. The reference is captured when the paragraph opens: 0 at the top level, or the list item's content column inside an item. - `content_offset` gives 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. The `code_indent` reading of an item's indented code follows the same column now, which corrects a six-column paragraph under `- ` that was read as code. - A bare `-` with no paragraph open sets the list state as an empty item. - GitHub's renderer checked every tested shape. A base-vs-head run of `sentence_length_findings` over all tracked Markdown files shows no difference. Fixes #3236 Fixes #3243 ## Local review There were three recorded `local-strict-review` passes. Pass 1 found that a lazy line moved the reference and that `marker.end()` missed the marker's spaces, both fixed. Pass 2 found the bare `-` empty item, fixed. A related `CODE_SPAN` case went onto #3240. The edit budget was spent with one `introduced` finding open: an empty item opening on `*`, `+`, `1.`, or `1)`. Copilot raised it too, along with item columns after a tab. The review loop fixed both: the splitter reads items through its own `ITEM_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](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
|
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.
🔵 Needs a closer look
A moderate tab-aware blockquote handling issue remains in scripts/pr_review.py.
No open issues 🎉
What changed in this PR
Promotes shared paragraph-boundary parsing and container-aware tag indentation fixes to main.
Changes:
- Unifies paragraph-interruption detection in review parsing.
- Bounds prose-gate tag indentation to list containers.
- Adds regression coverage for both behaviors.
- Requires tab-aware blockquote handling in
scripts/pr_review.py.
| File | Summary |
|---|---|
tests/test_prose_lint.py |
Tests tag indentation and empty list items. |
tests/test_pr_review.py |
Tests paragraph boundaries and code spans. |
scripts/pr_review.py |
Shares paragraph-boundary handling; tab-aware blockquote spacing remains to be addressed. |
.github/actions/prose-gate/prose_lint.py |
Implements container-aware tag and list parsing. |
Review effort: Lite
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3245 +/- ##
==========================================
+ Coverage 65.59% 65.60% +0.01%
==========================================
Files 17 17
Lines 9787 9790 +3
==========================================
+ Hits 6420 6423 +3
Misses 3367 3367
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:
|
|
On the headline's tab-aware blockquote handling: confirmed real. GitHub ends the paragraph at |
Summary
Promotes two paragraph-boundary fixes, one in
pr_review.pyand one in the prose gate'sprose_lint.py, from develop.CODE_SPANand 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.Closes #3227
Closes #3236
Closes #3243
🤖 Generated with Claude Code