Skip to content

v0.4.0 — addressable native preview parsing

Choose a tag to compare

@CocoRoF CocoRoF released this 03 Jul 05:47
· 63 commits to main since this release
8008a47

Addressable native preview parsing (DOCX/XLSX)

The preview, the outline and the editor now agree on addresses.

  • Native DOCX→HTML renderer (documents/docx_html): document-order rendering with data-e2d-para / data-e2d-table / data-e2d-cell="r,c" stamped on every block — the exact addresses docx_outline reports and apply_docx_edits takes (the PPTX canvas's data-e2p-* convention, extended to Word). Run formatting, EN+KR heading styles, numFmt-aware lists, blockquotes, alignment, sanitized hyperlinks, base64 images (budgeted), real colspan/rowspan merges, nested tables, content controls, footnotes, page breaks, kept empty paragraphs. Mammoth remains as a warning-tagged fallback.
  • docx_outline: document order (tables interleave where they sit); merged cells reported once at their top-left address. Fixes silently dropped cells caused by transient-lxml-proxy id() collisions.
  • xlsx_preview: spreadsheet-style grid — column letters, row numbers, merged ranges, cached formula results (formula as tooltip), data-e2d-cell="B3" on every cell, header heuristics, truncation warning.
  • POST /v1/preview: returns renderer warnings for docx/xlsx.
  • Wire-compatible: docx_to_html / xlsx_to_html signatures unchanged.

Pairs with edit2docs-web PR #2 (live-edit region highlight).

653 tests pass (22 new).