Add docx2html CLI tool for DOCX to HTML conversion#11
Merged
Conversation
The test files had legacy System.Drawing and System.Drawing.Imaging using statements that were no longer being used after the SkiaSharp migration.
New standalone command-line tool that converts Word documents to HTML: - Supports CSS classes or inline styles - Can embed images as base64 data URIs or extract to files - Configurable page title and CSS prefix - Handles tables, formatting, hyperlinks, and bidirectional text Usage: docx2html input.docx [output.html] [options]
Updates the publish workflow to: - Build and restore docx2html alongside redline - Pack docx2html NuGet package - Build self-contained binaries for all platforms (linux-x64, win-x64, osx-x64, osx-arm64)
- Add docx2html installation and usage instructions - Add docx2html binary downloads to releases section - Update 'What's Included' to list both CLI tools - Remove outdated 'What's Planned' section
JSv4
added a commit
that referenced
this pull request
Dec 20, 2025
- Add DocumentLanguage setting to override document language - Add lang attribute to <html> element (auto-detected from document) - Update GetLangAttribute() to use actual document default language - Language detected from w:themeFontLang, default style, or fallback to "en-US" - Foreign text spans get lang attribute when different from doc default - Add WASM/npm support for documentLanguage option - Add 4 new tests for language attribute functionality Addresses converter gaps #10 (Document Language Attribute) and #11 (Foreign Text Spans)
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docx2htmlCLI tool for converting DOCX files to HTMLSystem.Drawingimports from test files (14 files)Features
The docx2html tool supports:
--title)--css-prefix)--inline-styles)--extract-images) or base64 embedding (default)Test plan