Word to Markdown

v0.10.0
io.github.benbalter/word-to-markdown Checked 2 hours ago Published 5 days ago

Convert 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.

ParameterTypeDescription
path *stringPath to the .docx file. Relative paths resolve against the server's working directory, so prefer an absolute path.
bullet_listsbooleanTurn numbered lists into bullets.
image_dirstringExtract 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_pathstringWrite the Markdown to this .md file instead of returning it. Useful for long documents.
overwritebooleanReplace output_path or image files that already exist. Off by default, so a conversion never clobbers a file by accident.
preserve_footnotesbooleanKeep footnotes as raw <sup> links instead of GFM [^1] footnotes.