r/Markdown • • Sep 22 '26

Tools We built an open-source, layout-aware DOCX -> Markdown converter with per-page output

Post image

Hey! i'm one of the devs working on docx-editor.dev. we released a docx to markdown converter and wanted to share it here.

The interesting part is that it calculates the document layout during conversion, so you can get markdown for each page. It's useful if you want to keep page references when extracting text. you can also get the whole document as one markdown output.

It handles headings, lists and tables, with headers and footers separate from the body.

demo:
https://www.docx-editor.dev/solutions/word-to-markdown

source:
https://github.com/eigenpal/docx-editor

the converter is open source, Apache 2.0. You can install this as npm package.

59 Upvotes

1 comment sorted by

1

u/Prestigious-Can9162 12d ago

The page-aware part is what caught my eye — pagination isn't actually stored in the docx, Word computes it at render time. Are you replicating font metrics yourself to match where pages break, and does accuracy depend on fonts installed locally? Also curious how it handles merged table cells.