Doc To Markdown

Converts Word, PDF, PowerPoint and saved web pages into clean Markdown, fixing broken tables, image paths and Chinese bold text.

Office & Documentsmarkdowndocument conversionpdfwordby daymade1.5kGitHub

What it is

Doc to Markdown turns documents into Markdown, the plain-text format that uses simple symbols for headings and lists and that note apps, wikis and AI tools read easily. It handles Word (DOCX), PDF, PowerPoint (PPTX) and HTML pages you have saved to disk. It suits anyone moving manuals, reports or course material into Obsidian, a knowledge base or an AI chat, and it pays particular attention to Chinese documents.

A plain conversion often leaves messy output. This skill runs a bundled Python script that picks a converter for each format, pandoc, pymupdf4llm or markitdown, and then cleans up automatically: it turns broken grid tables into normal tables, flattens nested image folders, strips leftover formatting codes, adds spacing so Chinese bold text displays, and fixes code blocks. For PDFs it removes OCR garbage, repeated headers, footers and watermarks. A slower Heavy Mode compares several converters, and a validator writes an HTML quality report.

You get a Markdown file plus an images folder, with relative paths so they can be moved together. The limits are stated honestly: tables that span pages are not merged, dotted contents pages can look like tables, PDFs may repeat a paragraph, and text inside complex infographics stays as an image. In Claude Code it does not start on its own; you call it by name. You should still compare the result with the original.

What it can do

  • Converts DOCX, PDF, PPTX and saved HTML or HTM files to Markdown, choosing the converter for each format.
  • Repairs broken tables, nested image paths and leftover width attributes from Word conversions.
  • Adds spacing around bold Chinese text so it renders correctly in Markdown readers.
  • Removes OCR noise, repeated headers and footers, and diagonal watermarks from converted PDFs.
  • Extracts every image from a PDF along with its page and position.
  • Merges outputs from several converters and checks conversion quality with an HTML report.

When to use it

  • You have a 60-page Word manual with tables and screenshots and want it in your Obsidian vault without broken formatting.
  • A watermarked PDF report needs to go into an AI chat or knowledge base as clean text.
  • You saved a product help page as HTML and want one tidy Markdown file with its links intact.
  • A Chinese Word document you converted elsewhere lost all its bold text, and you want it done properly.

How it works

  1. 1You call the skill and point it at a document; it checks the file type and which converters are available.
  2. 2Its Python script runs pandoc for Word, pymupdf4llm for PDF or markitdown for PowerPoint, with fallbacks.
  3. 3It applies the automatic clean-up rules for that format and rewrites image paths to be relative.
  4. 4For important PDFs it compares the result with the source and can run the validator for a quality report.
  5. 5It points out known trouble spots, such as tables split across pages, for you to check by hand.

Try asking

“Convert this Word document to Markdown and keep the images.”
“Turn report.pdf into clean Markdown without the watermark and page headers.”
“Convert this saved HTML help page to Markdown.”
“Use Heavy Mode to convert this PDF with complex tables.”

How to install

Install with the skills CLI (recommended)

Works with Claude Code, Codex, Cursor, OpenCode and other agents, and asks which ones to install to. Needs Node.js 22.20+. Add -g to make it available in every project.

npm
npx skills add https://github.com/daymade/claude-code-skills/tree/main/daymade-docs/doc-to-markdown
pnpm
pnpm dlx skills add https://github.com/daymade/claude-code-skills/tree/main/daymade-docs/doc-to-markdown

Install as a Claude Code plugin

Run these inside Claude Code. The plugin may bundle related skills from the same author.

Claude Code
/plugin marketplace add daymade/claude-code-skills
/plugin install daymade-docs@daymade-skills

Install manually

Copies the skill folder into Claude Code's personal skills directory. For claude.ai, zip the doc-to-markdown folder and upload it in the Skills section of Settings.

Terminal
git clone --depth 1 https://github.com/daymade/claude-code-skills.git
mkdir -p ~/.claude/skills
cp -r claude-code-skills/daymade-docs/doc-to-markdown ~/.claude/skills/doc-to-markdown

Then just ask in plain language, for example: “Convert this Word document to Markdown and keep the images.”