Skip to content

fix(doc2md): preserve literal XLSX cell text in HTML tables - #18423

Open
Shayne-Pro wants to merge 1 commit into
PaddlePaddle:mainfrom
Shayne-Pro:codex/fix-doc2md-xlsx-cell-text
Open

Shayne-Pro wants to merge 1 commit into
PaddlePaddle:mainfrom
Shayne-Pro:codex/fix-doc2md-xlsx-cell-text

Conversation

@Shayne-Pro

Copy link
Copy Markdown

XLSX conversion inserts plain cell values into HTML table markup. As a result, literal text such as <ROI> disappears when rendered, and &copy; changes to ©.

Escape the cell value before adding the existing formatting and hyperlink wrappers. Add 12 cases that write real XLSX files and check the parsed table text for plain, bold/italic and linked cells. The unchanged code fails 9 cases; the fix passes all 12.

Validation: python -m pytest -q tests/unit/test_doc2md_xlsx.py, Black, Flake8 and the configured pre-commit hooks passed for the changed files. Tests load the standalone doc2md package without PaddleX inference imports; OCR inference and the full CI matrix were not run.

This change was prepared with AI assistance and checked locally.

@CLAassistant

CLAassistant commented Oct 28, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants