-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Restore and finish html-to-word-swift as a proper Layer 3 converter in macdoc.
The current main branch only carries the package manifest / README / CLI wiring from the earlier merge, but the tracked converter source and tests are missing. This follow-up issue lands the actual converter implementation.
Conversion Requirements
- Input:
.html - Output: Word
.docx(plus streamed OOXML document XML forDocumentConverter) - Architecture: direct HTML → Word path using OOXML writer strategy
- Protocol: implement
DocumentConverterwithStreamingOutput
Layer 1 / Core Dependencies
SwiftSoupfor HTML parsingooxml-swiftfor DOCX generationcommon-converter-swift(DocumentConverter,StreamingOutput,ConversionOptions)
Implementation Notes
- Map headings, paragraphs, lists, tables, hyperlinks, blockquotes, and preformatted blocks into
WordDocument - Provide
convertToFilefor.docxoutput and streamingconvertfor document XML - Keep package independent under
packages/html-to-word-swift/ - Ensure CLI command
macdoc html-to-wordworks against the restored package source
Test Strategy
- Package-level tests for XML/docx generation, metadata, inline formatting, lists, tables, hyperlinks, and code/blockquote handling
swift testinsidepackages/html-to-word-swift
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request