Word to Markdown
v0.10.0Convert Word (.docx) documents to Markdown via CLI, Node.js, or browser
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
convert_docx_to_markdown Convert Word to Markdown
Convert a Word (.docx) file to GitHub-flavored Markdown. Returns the Markdown plus any document warnings (encryption, sensitivity labels, content that could not be converted). Only .docx is supported; re-save older .doc files as .docx first.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the .docx file. Relative paths resolve against the server's working directory, so prefer an absolute path. |
bullet_lists | boolean | Turn numbered lists into bullets. |
image_dir | string | Extract images into this folder and link them from the Markdown. A relative folder inside output_path's folder when set, else the .docx's. Omit to drop images. |
output_path | string | Write the Markdown to this .md file instead of returning it. Useful for long documents. |
overwrite | boolean | Replace output_path or image files that already exist. Off by default, so a conversion never clobbers a file by accident. |
preserve_footnotes | boolean | Keep footnotes as raw <sup> links instead of GFM [^1] footnotes. |