A (WIP) docx to Plate deserializer. Written in Gleam, compiled to JavaScript.
Converts Microsoft Word documents to Plate editor format, preserving formatting and structure.
npm install plate-docx-deserializer
# or
pnpm add plate-docx-deserializerimport { convertDocx } from "plate-docx-deserializer";
// Pass a Uint8Array of the DOCX file
const plateNodes = await convertDocx(uint8Array);
// Use the nodes in your Plate editor- Text formatting (bold, italic, underline, strikethrough)
- Paragraphs and headings
- Lists (numbered, bulleted)
- Text alignment
- Basic styles from Word
# Install dependencies
pnpm install
# Run tests
gleam test
# Build library
pnpm build
# Run example app
pnpm devSee examples/basic-editor/ for the source code.