Repository navigation
Conversation
I serialize block children at the list marker content column and keep their indentation in nested lists. I add regression coverage for marker widths, multiline code, filtering, and inline output. Signed-off-by: w3lld1 <[email protected]>
Contributor
|
✅ DCO Check Passed Thanks @w3lld1, all your commits are properly signed off. 🎉 |
Contributor
Merge Protections🔴 1 of 2 protections blocking · waiting on 👀 reviews
🔴 Require two reviewer for test updatesWaiting for
This rule is failing.When test data is updated, we require two reviewers
Show 1 satisfied protection🟢 Enforce conventional commitMake sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Member
|
Superseded by #830 |
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
Fixes #844.
I keep a list item's continuation paragraphs and fenced code blocks indented to its rendered marker's content column, with blank lines separating the blocks and the next sibling item. I serialize those children with the shared visited set so they are not emitted again outside the item.
I also preserve the continuation indentation when a loose item is inside a nested list. The existing single-InlineGroup representation stays unchanged.
I added 11 regression cases covering bullet and ordered markers (including
10.), nested lists, multiline code, duplicate prevention, source-item references, label filtering, final-item whitespace, and inline formatting. Nine of these cases failed on the upstream base before the fix.Validation
I ran these checks on Python 3.14.7:
uv sync --frozen --all-extras --all-packagesuv run --no-sync pytest -q tests/test_markdown_loose_lists.py tests/test_serialization.py— 159 passed, 1 xfailed.uv run --no-sync pytest -q tests packages/dclq/tests— 847 passed, 6 skipped, 1 xfailed.uv run --no-sync ruff check docling_core/transforms/serializer/markdown.py tests/test_markdown_loose_lists.pyuv run --no-sync ruff format --check docling_core/transforms/serializer/markdown.py tests/test_markdown_loose_lists.pyuv run --no-sync mypy docling_core tests packages/dclq/dclq packages/dclq/testsuv run --no-sync pre-commit run --all-files— all hooks passed.git diff --checkI leave the other Python versions and package-build/install jobs to upstream CI. No dependency, schema, or existing golden-fixture changes are included.