MD Format Conversion Tool
Paste the following prompt into your AI chat to install this skill:
Install @user_98283d0f/md-converter-pro using https://skillhub.cn/install/skillhub.md
About this skill
Problem context
Teams often move documents between Markdown, PDF, DOCX, HTML, and TXT. Switching tools manually, verifying dependencies, and checking output quality can easily miss encoding problems, broken heading levels, or unsafe markup. This skill consolidates those workflows into a document format conversion engine that is useful for repeatable or batch conversions.
How it works
It supports eight conversion paths: MD → PDF, MD → DOCX, MD → HTML, MD → TXT, and the reverse paths PDF → MD, DOCX → MD, HTML → MD, TXT → MD. Different paths use different parsing or rendering libraries, for example python-docx for DOCX conversion, markdownify for HTML to Markdown, and pdfminer.six for PDF extraction.
When scripts/common/security.py exists, a security module is enabled automatically: path sandboxing restricts input and output directories, a file size limit defaults to 50MB, HTML/Markdown sanitization removes dangerous markup, and error messages sanitize paths, usernames, and IP addresses. If that file is absent, checks are skipped for backward compatibility.
When the output is Markdown and scripts/common/quality.py exists, quality validation runs: it detects garbled PDF text layers, compares input and output word counts, and checks heading-level continuity. Results are saved as a same-named .quality.json file, with a score printed to the terminal.
Scope and caveats
It is best suited for documents with an intact text layer. It does not include OCR, so scanned PDFs must be recognized externally first. Chinese garbling commonly comes from non-UTF-8 source files or damaged PDF text layers. For batch failures, check file type, size, and required dependencies first.
Use Cases
- Batch convert repository Markdown docs to PDF and DOCX for customer delivery
- Convert PDF notes and HTML drafts back to MD for continued editing
- Process shared DOCX/HTML files into Markdown with path sandboxing
- Convert TXT notes to Markdown and verify continuous heading levels
Best For
- Engineering docs maintainers who need MD specs exported to PDF/DOCX for review
- Analysts consolidating PDF/HTML sources into Markdown for later search and editing
- Solutions architects delivering customer materials who need batch DOCX/HTML conversion with path sandboxing
- Content operators turning TXT/MD notes into publishable HTML or PDF output
Related Skills
Generate and edit .pptx decks with python-pptx, applying structured layouts, design rules, native charts, and visual QA to reduce template-like output.
Tencent Cloud Table Recognition V3 is an OCR skill for detecting and recognizing tables in images or PDFs, supporting various table types like linear and borderless tables, with Excel export.
The complete set of online document operation tools provided by Tencent Docs MCP, supporting creation, querying, and editing of smart docs, Excel, PPT, mind maps, and more.
Turn a topic, notes, or tables into a complete PPT plan with logic, page layouts, visual and chart guidance, and natural defense scripts.