md2docx

Convert Markdown files to Word documents with pandoc and custom templates.

1|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/YH-05/finance --skill md2docx-yh-05
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: md2docx
Source: https://github.com/YH-05/finance/tree/main/.claude/skills/md2docx
Command: npx skills add https://github.com/YH-05/finance --skill md2docx-yh-05

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandoc, python-docx, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the conversion of Markdown files into professional Word documents (.docx), ensuring consistent formatting and design.

Core Features & Use Cases

  • Markdown to DOCX Conversion: Utilizes pandoc with custom templates for high-quality output.
  • Automated Formatting: Applies specific fonts (MingLiU/Times New Roman), margins, and font sizes.
  • Table Font Post-processing: Ensures all tables within the DOCX have consistent 9pt font sizes.
  • ASCII Art Conversion: Intelligently converts ASCII art within code blocks into descriptive natural language.
  • Use Case: Convert research reports, analysis summaries, or documentation written in Markdown into polished Word documents suitable for official distribution or printing.

Quick Start

Convert the markdown file located at '/path/to/your/report.md' into a Word document.

Frequently Asked Questions about md2docx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert markdown to docx with custom fonts and margins?

This Skill converts markdown to docx using pandoc with custom templates, applying specified fonts like Times New Roman, exact margins, and defined font sizes to generate a professional Word document.

Can I fix table formatting when converting markdown to a Word document?

Yes, when converting markdown to a Word document, the tool applies table font post-processing to enforce a consistent 9pt font size across all tables. This ensures your tabular data remains readable and uniformly formatted in the final docx output.

Does pandoc support converting ASCII art to text in docx generation?

Pandoc handles the base conversion, while this Skill adds post-processing to convert ASCII art to text. It intelligently translates ASCII art within code blocks into descriptive natural language during the markdown to docx generation process.

Do I need python-docx to convert markdown files into a Word document?

Yes, you need python-docx and pandoc installed to convert markdown files into a Word document. These dependencies are required for applying custom templates and executing the post-processing logic for table fonts and ASCII art conversion.

What is the best way to generate professional Word documents from markdown reports?

The best way to generate professional Word documents from markdown is using an automated pandoc pipeline. This approach standardizes fonts, sets margins, normalizes table formatting to 9pt, and converts ASCII art for official distribution.