Document Converter
Universal document format conversion between DOCX, PDF, Markdown, HTML, and TXT.
Usage
/doc-converter --convert <file> --to <format> Convert file to target format
/doc-converter --detect <file> Detect file format
/doc-converter --batch <dir> --to <format> Batch convert directory
Supported Conversions
| From → To | MD | HTML | TXT | |
|---|---|---|---|---|
| DOCX | ✅ | ✅ | ✅ | — |
| Markdown | — | ✅ | ✅ | ✅ |
| HTML | ✅ | — | ✅ | ✅ |
| — | — | ✅ | — | |
| TXT | — | — | — | ✅ |
Dependencies
mammoth— DOCX parsingmarked— Markdown to HTMLpdf-parse— PDF text extraction