Read the User and Developer Guide for full setup instructions, workflows, API details, export packaging and troubleshooting. The implementation report contains the recorded test results and conversion-fidelity findings.
A standalone plain HTML, CSS and JavaScript prototype. No Vite, React, backend conversion, database, uploads, CDN assets or PDF functionality. Native Word OMML equations are converted into editable LaTeX formula embeds in Quill.
Requires Node.js 20+ and npm for dependency installation and development tooling.
npm.cmd ci
npm.cmd run build
npm.cmd run devOpen http://127.0.0.1:5173. On macOS/Linux, use npm instead of npm.cmd. The build command only copies static files and dependencies; it does not compile the application or process documents. You can serve dist/ with any static HTTP server. After installation/build, operation needs no internet connection. Direct file:// opening is unsupported because the app uses native JavaScript modules.
- Select Import Word Document and choose a
.docxup to 15 MB. - Review the import summary and warnings. The document is an in-memory draft; closing or refreshing loses it.
- Edit text and simple table cells with Quill. Click a formula and choose Insert / edit equation to modify its LaTeX. With no formula selected, the button inserts at the last cursor position.
- Expand Technical details to inspect actual Quill Delta, source filename, timing and equation counts.
- Export Delta JSON downloads
quill.getContents(). Formula expressions are stored asinsert: {formula: "..."}. Unsupported equations useunsupportedMathwith original XML, readable text and reason. - Export HTML downloads the edited rendered content, sanitized with DOMPurify. Put the exported HTML next to a copy of the generated
vendor/directory for local Quill/KaTeX CSS and fonts. Math markup and image data are included; no rendering JavaScript is required. HTML is a viewing export, not a DOCX round trip. - Replacement imports and clearing require confirmation. A failed conversion retains the previous draft.
npm.cmd run fixtures
npx.cmd playwright install chromium
npm.cmd testFixtures are real ZIP/XML DOCX packages with native OMML, generated by development-only tooling. They have not been independently validated by opening in Microsoft Word. Tests use an actual Chromium browser and Quill, not a mocked editor. Results, screenshots, Delta/HTML exports and performance measurements are in artifacts/.
- Direct paragraph/run formatting: headings using Heading1–Heading6 IDs, bold, italics, underline, superscript/subscript, alignment, simple numbered/bullet/nested lists.
- Native fractions, powers, subscripts, radicals, common n-ary operators, limits, functions, matrices, delimiters and mapped Greek symbols. This is a bounded OMML subset, not a complete mathematical translator. Unsupported structures produce visible placeholders retaining source XML.
- Simple rectangular tables use Quill 2's table module. Cell order and inline content survive; cell widths, merged cells, nested tables and multiple paragraph boundaries do not fully survive. Table editing toolbar is not provided; existing cell text is editable.
- Embedded PNG/JPEG/GIF/WebP become local data URLs. The fixture verifies a small PNG; complex drawings and image sizing are not faithfully reproduced.
- No Word page layout, inherited styles, custom numbering restarts, headers/footers, footnotes, floating objects, charts, embedded OLE, hyperlinks or track-change semantics. Warnings cover detected structures, not every possible OOXML feature.
- ZIP and XML parsing and Quill rendering run on the main thread. Conversion yields between body blocks, but large documents can still cause pauses. Limits reduce risk; this is not a hardened hostile-document sandbox.
- One known low-severity Quill 2.0.3 HTML-export advisory remains in npm audit. This implementation avoids
getSemanticHTML, sanitizes DOM export, and adds a restrictive export CSP. See the implementation report for evidence and residual risk. - No Delta import UI. Programmatic reload works with the same Quill version and registered fallback blot; the browser test verifies formula round trips.
See WORD_TO_QUILL_IMPLEMENTATION_REPORT.md for measured results and detailed limitations.