Repository navigation
Conversation
Contributor
|
@TemitopeKadri is attempting to deploy a commit to the deepset Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||||||||||||||
anakin87
approved these changes
Oct 16, 2026
anakin87
left a comment
Member
There was a problem hiding this comment.
Thank you!
I pushed a minor refinement
anakin87
enabled auto-merge (squash)
October 16, 2026 08:19
Contributor
Author
|
Thanks for the quick review and merge, @anakin87, and for tightening the regex. Good catch on the Windows line endings. |
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.
Related Issues
Proposed Changes:
MarkdownHeaderSplittertook the header text frommatch.group(2).strip(), so the optional closing sequence of an ATX header (## Install ##) ended up in theheaderandparent_headersmetadata.This PR strips that closing sequence when the header text is extracted. Following the CommonMark rule, it is removed only when it is the whole header text or follows whitespace. So
## C#,## Install #1and## Install \#keep their text. The chunk content is untouched and still reconstructs the input byte-exactly. Only the metadata changes.How did you test it?
test_closing_sequence_is_not_part_of_header_metadata. It covers trailing##, a long closing sequence with trailing spaces, a tab separator and an empty## ##header, plus three cases that must not be stripped (C#,#1, escaped\#). It also checksparent_headersand that the joined chunk content equals the input.hatch run test:unit test/components/preprocessors/test_markdown_header_splitter.py: 70 passed. The new cases fail onmain.hatch run fmt-checkandhatch run test:typespass.Notes for the reviewer
The fenced-code-block cases in #12954 come from the separate
_code_block_pattern, so this PR doesn't touch them.Checklist
fix:,feat:,build:,chore:,ci:,docs:,style:,refactor:,perf:,test:and added!in case the PR includes breaking changes.🤖 Generated with Claude Code