Skip to content

fix: html serialization of lists with mixed markers - #700

Closed
julianfesel wants to merge 1 commit into
docling-project:mainfrom
julianfesel:fix/#699-html-serialization-list-markers
Closed

julianfesel wants to merge 1 commit into
docling-project:mainfrom
julianfesel:fix/#699-html-serialization-list-markers

Conversation

@julianfesel

Copy link
Copy Markdown

This PR implements option 1 of issue #699

HTML list items with an empty marker now render with list-style-type: none; when original markers are being shown, so the browser no longer invents numbering that is not present in the DoclingDocument.

Changes

  • Updated HTMLTextSerializer to suppress default list markers for unmarked list items while preserving explicit markers.
  • Added a regression test for a mixed enumerated/non-enumerated list group.
  • Refreshed the affected HTML and chunker goldens to match the new serializer output.

@github-actions

Copy link
Copy Markdown
Contributor

❌ DCO Check Failed

Hi @julianfesel, your pull request has failed the Developer Certificate of Origin (DCO) check.

This repository supports remediation commits, so you can fix this without rewriting history — but you must follow the required message format.


🛠 Quick Fix: Add a remediation commit

Run this command:

git commit --allow-empty -s -m "DCO Remediation Commit for Fesel Julian (BCC.ICT) <[email protected]>

I, Fesel Julian (BCC.ICT) <[email protected]>, hereby add my Signed-off-by to this commit: 879cbe944589ca2a0bf0651f9993d1606b913096"
git push

🔧 Advanced: Sign off each commit directly

For the latest commit:

git commit --amend --signoff
git push --force-with-lease

For multiple commits:

git rebase --signoff origin/main
git push --force-with-lease

More info: DCO check report

@mergify

mergify Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Merge Protections

🔴 1 of 2 protections blocking · waiting on 👀 reviews

Protection Waiting on
🔴 Require two reviewer for test updates 👀 reviews
🟢 Enforce conventional commit —

🔴 Require two reviewer for test updates

Waiting for

  • #approved-reviews-by >= 2
This rule is failing.

When test data is updated, we require two reviewers

  • #approved-reviews-by >= 2

Show 1 satisfied protection

🟢 Enforce conventional commit

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?(!)?:

@julianfesel
julianfesel deleted the fix/#699-html-serialization-list-markers branch July 30, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant