Scan your whole stack
Are you using docx-to-markdown?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v2.41.0
docx-to-markdown was last scanned on 26 Nov 2026 at version 2.41.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 2.41.0 LATEST | 26 Nov 2026 | No rules fired |
| 2.40.0 | 24 Nov 2026 | No rules fired |
| 2.39.0 | 18 Nov 2026 | No rules fired |
| 2.38.0 | 16 Nov 2026 | Not shown |
| 2.37.0 | 11 Nov 2026 | Not shown |
Findings for v2.41.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 2.41.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Convert Word documents to Markdown, with individual pages, headers, footers, comments, and tracked changes.
Use Python 3.11 or later. Install the package with pip:
pip install docx-to-markdown
Convert a file and read its document and page output:
from docx_to_markdown import convert
result = convert("contract.docx")
print(result.markdown)
for page in result.pages:
print(f"Page {page.number}", page.markdown)
print(page.header_markdown, page.footer_markdown)
result.markdown contains the document body; headers and footers stay in result.pages. Input can be a file path, bytes, or a binary file object.
Enable images, supply font files, and choose a tracked-change view:
result = convert(
"contract.docx",
images=True,
fonts="fonts/",
google_fonts=True,
display_mode="proposed",
)
result.write("out/") # document.md, document.json, media/
images=True extracts images; images="html" also preserves displayed sizes.fonts accepts font files or directories. Common Word font substitutes are bundled.google_fonts=True fetches missing fonts from a pinned Google Fonts catalog (requires network access). Use google_font_families() to list supported families and result.missing_fonts to check what still needs local font files.display_mode selects tracked changes: "all-markup" (default), "proposed" (accepted view), or "original" (rejected view).Comments and tracked changes are available in result.comments and result.tracked_changes. Page breaks can differ from Word; check result.warnings for conversion issues.
Reuse one converter process for multiple files:
from pathlib import Path
from docx_to_markdown import Converter
with Converter() as converter:
for path in Path("contracts").glob("*.docx"):
result = converter.convert(path)
result.write(Path("output") / path.stem)
Write Markdown to standard output, save a file, or export a bundle:
docx-to-markdown contract.docx # Markdown to stdout
docx-to-markdown contract.docx -o contract.md
docx-to-markdown contract.docx --json
docx-to-markdown *.docx --bundle out/ --images
Documentation · Try the demo · PyPI · Changelog
Apache 2.0. Bundled dependencies and fonts retain their own licenses; notices are included in the package.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.