Skip to content

Fix markdown output for vertically merged table cells#8

Open
Bruce-anle wants to merge 1 commit into
sudipnext:mainfrom
Bruce-anle:fix/table-vmerge
Open

Fix markdown output for vertically merged table cells#8
Bruce-anle wants to merge 1 commit into
sudipnext:mainfrom
Bruce-anle:fix/table-vmerge

Conversation

@Bruce-anle
Copy link
Copy Markdown

Summary

  • track w:vMerge restart cell text by column
  • repeat the restart text for continuation cells so visible merged-cell content is not lost
  • clear tracked merge text when a normal cell appears
  • add focused table conversion tests

Why

DOCX tables can use w:vMerge for vertically merged cells. Markdown has no rowspan support, but leaving continuation cells empty loses the visible merged cell value in plain markdown output.

Tests

  • /home/brucean/doc4agent/.venv/bin/python -m pytest tests -q -p no:cacheprovider

Background: DOCX tables can use w:vMerge for vertically merged cells. Markdown has no rowspan support, but leaving continuation cells empty loses the visible merged cell text.\n\nChanges: track vertical merge restart values by column and repeat them for continuation cells, while clearing the tracked value when a normal cell appears.\n\nVerification: /home/brucean/doc4agent/.venv/bin/python -m pytest tests -q -p no:cacheprovider passed.
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