Convert DOCX files to Markdown using Playwright
Project description
doc-to-md-cli
A command-line tool to convert DOCX files to Markdown using Playwright automation.
Features
- Convert single DOCX files or entire directories
- Batch processing support
- Headless browser mode for automation
- Clean Markdown output powered by word2md.com
Installation
pip install doc-to-md-cli
Usage
Convert a single file
doc-to-md document.docx
Convert to a specific output directory
doc-to-md document.docx --out ./output
Convert all DOCX files in a directory
doc-to-md ./my-docs --out ./converted
Run in headless mode (no visible browser)
doc-to-md document.docx --headless
Requirements
- Python 3.8 or higher
- Playwright (installed automatically)
After installing, you may need to install Playwright browsers:
playwright install chromium
License
MIT License - see LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
doc_to_md_cli-0.1.0.tar.gz
(24.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file doc_to_md_cli-0.1.0.tar.gz.
File metadata
- Download URL: doc_to_md_cli-0.1.0.tar.gz
- Upload date:
- Size: 24.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a9c3dc15f94cfa93705b0329932af5ae33cdc29b5b0dad07ae9a90c0827caaa
|
|
| MD5 |
44dc816184b44017eaabb36e53d24df5
|
|
| BLAKE2b-256 |
d8c799d57235fc035a90306206ba8e378a979e5b30ba2d843be64607a2d8d7ec
|
File details
Details for the file doc_to_md_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: doc_to_md_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b7f888fa5e81c295d14032b016e9ee2a3c2b70e719a44b78491fac3ee9741b7
|
|
| MD5 |
8dceab33a42ad62ddcf87655bc923dc6
|
|
| BLAKE2b-256 |
1b14652ef7354e59b3fe9bc7b0aec0658194c160877f66c736915ba4321dd5ab
|