Doc2md watches your folder, converts complex documents, repairs the output, and publishes only zero-warning Markdown.
| 📥 Drop | Place PDF, DOCX, PPTX, XLSX, EPUB, HTML, ZIP, or text files into input/ |
| ⚙️ Convert | MarkItDown extracts content locally with no cloud processing |
| 🧹 Repair | Doc2md fixes headings, lists, links, URLs, tables, code, and front matter |
| ✅ Validate | PyMarkdown strict mode must return zero warnings |
| 📦 Publish | Only clean Markdown is atomically written to converted/ |
| 😴 Finish | The watcher exits after 30 seconds without new input |
input/
│
▼
┌──────────────────────┐
│ Local file detection │
└──────────┬───────────┘
▼
┌──────────────────────┐
│ MarkItDown converter │
└──────────┬───────────┘
▼
┌──────────────────────┐
│ Markdown repair │
└──────────┬───────────┘
▼
┌──────────────────────┐
│ Strict PyMarkdown │──fail──▶ converted/.quarantine/
└──────────┬───────────┘
│ zero warnings
▼
converted/*.md
- 🔒 Local-first: no document content is uploaded.
- 🧠 Structure-aware repair: fixes real Markdown semantics, not only whitespace.
- 🧯 Archive protection: rejects ZIP bombs, nested archives, and unsafe media.
- ♻️ Resilient output: restores the previous valid result after a failed refresh.
- 🧱 Modular: conversion, validation, repair, output, and watching are independent.
- 🪶 No-warning guarantee: invalid Markdown is quarantined instead of published.
- ⏱️ Zero idle time: automatically closes after 30 seconds without input.
- Open the latest release.
- Download
Doc2md-Windows-x64.zip. - Extract it anywhere on your Windows computer.
- Keep
Doc2md.exein its own folder. - Create
input/andconverted/beside the executable. - Run
Doc2md.exe.
Requirements: Windows and Python 3.12–3.14.
setup.bat
run_converter.batCopy documents into input/. Clean output appears in converted/ as
document.pdf.md, document.docx.md, and so on.
.\.venv\Scripts\python.exe -m unittest discover -s tests -v
.\.venv\Scripts\pymarkdown.exe --config src\doc2md\pymarkdown.json --strict-config scan converted\*.mdApache License 2.0 — permissive, commercial-friendly, and includes an
express patent grant. See LICENSE.