v0.4.0 — addressable native preview parsing
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 withdata-e2d-para/data-e2d-table/data-e2d-cell="r,c"stamped on every block — the exact addressesdocx_outlinereports andapply_docx_editstakes (the PPTX canvas'sdata-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-proxyid()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_htmlsignatures unchanged.
Pairs with edit2docs-web PR #2 (live-edit region highlight).
653 tests pass (22 new).